Skip to content

set configuration from the python files #29

@jbcolme

Description

@jbcolme

From the examples, setting yLimits work but setting the timeWindow gives an error:

Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/home/jcolmenares/development/signal-testing/oscilloscope.py", line 8, in <module>
    addPlot(timeWindow=20, yLimits=[-50, 50])
  File "<string>", line 153, in addPlot
AttributeError: PlotWidget has no attribute named 'setTimeWindow'

I'm just adding this line to the python file:

addPlot(timeWindow=20, yLimits=[-50, 50])

We would also like to be able to set the point size and line style from the python file, so that you don't have to load two files every time. Since this two things are global to all plots the idea is that the user sets them on the first plot and get done with it. If you guide me through the code a little bit I'll be more than happy to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions