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

viz.title not working #61

Open
ggrrll opened this issue Dec 6, 2018 · 2 comments
Open

viz.title not working #61

ggrrll opened this issue Dec 6, 2018 · 2 comments
Assignees

Comments

@ggrrll
Copy link
Contributor

ggrrll commented Dec 6, 2018

Hi,

I am able to set the ylabel with something like viz.ylabel = 'nodes fraction' , but the equivalent for the title does not work ... viz.title = 'some_title' -- basically the title still gives me the info in model.params['model']

thanks

@GiulioRossetti
Copy link
Owner

The issue is tied to the rationale discussed in issue #60.

The plot method takes care of generating the labels starting from models metadata.
Since such method either (1) save the plot on file or (2) visualize the final image, until it is called the axis labels (as well as figure title) are not set. Currently, to ensure the use of model metadata, this mechanism prevents from reassign such values.

@GiulioRossetti GiulioRossetti self-assigned this Dec 7, 2018
@GiulioRossetti
Copy link
Owner

The branch mpl_viz_refactoring implements a modified version of the mpl plotting submodule in which plot() methods return a Figure object. Please test it and let me know if a similar solution suits your needs.

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

2 participants