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

Graph markers, colours for classifications and scales #5

Closed
mfitzp opened this issue Feb 26, 2014 · 2 comments
Closed

Graph markers, colours for classifications and scales #5

mfitzp opened this issue Feb 26, 2014 · 2 comments
Assignees

Comments

@mfitzp
Copy link
Owner

mfitzp commented Feb 26, 2014

Some system for assigning graph markers and colours for both classes (groups in data) and scales (ranges) is needed. It would probably make sense to define this centrally attached to the workflow, so that you can set them once and all figures will obey the same theme.

I'm sort of envisaging some kind of filter system on class markers. So, for example if you have 4 classes M1, M2, DC, Mo. You could define classes assigning by filter "m" diamonds to M1, M2, Mo; "dc" blue circles; "1" green"; "2" red; "o" purple. The end result being the M1 is a green diamond.

This needs a nice logical interface to work together with the appropriate lookup functions for use in the views.

@mfitzp
Copy link
Owner Author

mfitzp commented Apr 3, 2014

The initial implementation of this is now in place in commit 196e0c3

This initial implementation is non-interactive, but has the backend to support defined
colour assignments in future. Presently this watches for classes and assigns a unique style
to each. These are persisted in the current session and will ensure figures all remain
consistent across the different plots. An API is provided for plots to access the attributes
and use as neccessary, the full set being available as ls.kwargs, or ls.line_kwargs, or
ls.marker_kwargs for the line and marker specific kwargs.

The next step in implementation is a UI to allow definition of class-name matching to
assign specific colours and marker styles.

@mfitzp mfitzp self-assigned this Apr 3, 2014
@mfitzp
Copy link
Owner Author

mfitzp commented Apr 6, 2014

This is now done in master 0f9d1e7. Provides a full interactive editor for setting matplotlib marker, line and color styles together with various matching options (exact, starts with, ends with, in, and regexp) for matching classes to styles. Styles are applied cumulatively so if >1 rule matches a compound style will result.

Styles are saved and loaded with workflows allowing re-use. Last 'to-do' (later, as separate issue) is allowing loading and saving of style definitions separately to workflows - this depends on other style config implementation first.

@mfitzp mfitzp closed this as completed Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant