Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed VisVis PyQt4 compatibility and VisVis line properties #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

JarrettR
Copy link

@JarrettR JarrettR commented Sep 2, 2017

Fixes second and third points in issue #53 .

Does not do anything with the first point, because I'm unsure how pyconf is intended to be used. I hardcoded conf.PYFORMS_USE_QT5 = True in my local copy.

Additionally, a new feature allows VisVis Line Properties to be passed along with values, as described here

Some code that tests this feature pulled from my private repo is here:

        default = {'ms': 'o', 'mc': 'r', 'mw': '3', 'ls': '', 'mew': 0 }
        self._histogram = ControlVisVis('Histogram', linepropertydefault=default)
        
        Sensor = Frame()
        values = []
        values.append(Sensor.capture())
        values.append(Sensor.capture())
        
        self._histogram.value = values
        
        lineproperty = []
        lineproperty.append({'lw': 5, 'ms': 'o', 'lc': 'r', 'mw': '3', 'ls': '-', 'mew': 0 })
        lineproperty.append({'lw': 10, 'ms': 'o', 'lc': 'y', 'mw': '3', 'ls': '-', 'mew': 0 })

        self._histogram.lineproperty = lineproperty

I may add something similar to one of the examples in a future PR if this is desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant