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

plotaxes with same name results in missing plots #209

Open
Dirivian opened this issue Mar 7, 2017 · 2 comments
Open

plotaxes with same name results in missing plots #209

Dirivian opened this issue Mar 7, 2017 · 2 comments
Assignees

Comments

@Dirivian
Copy link

Dirivian commented Mar 7, 2017

When we create a plotaxes object, we need to give it a name ('Density' in the line below):

plotaxes = plotfigure.new_plotaxes(name='Density')

Using the same name again for another plotaxes object results in the first one disappearing (i.e., the plot doesn't show up). It would be nice if visclaw gave a warning in this case.

@mandli
Copy link
Member

mandli commented Mar 7, 2017

What kind of warning are you thinking? I could see simply printing out a warning message to the terminal or actually raising an exception. I am slightly more in favor of doing the latter as you could replace a plotaxes by first removing it and then adding the new one.

@rjleveque
Copy link
Member

If you make a new ClawPlotFigure with the same name as a previous one I think it does throw an error. We should do something similar with ClawPlotAxes.

@rjleveque rjleveque self-assigned this Feb 23, 2019
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

No branches or pull requests

3 participants