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

plotting into figure and axis #499

Open
ahoc opened this issue Nov 6, 2018 · 1 comment
Open

plotting into figure and axis #499

ahoc opened this issue Nov 6, 2018 · 1 comment

Comments

@ahoc
Copy link

ahoc commented Nov 6, 2018

  • nxviz version: 0.5.0
  • Python version: 3.6.6
  • Operating System: LInux

Description

I would like to plot into figure and axis instead of having a new figure created automatically. Apparently it is not possible to specify those as parameter.

As workaround, I did:

fig, axi = plt.subplots(1, 1, num=1)
cp = nv.CircosPlot(G);
plt.close(); # remove the figure automatically created by nv
cp.figure=fig;
cp.ax=axi;
cp.draw();
plt.show();

This works more or less if only one subplot is made. For several subplots, and if colorbars are created (automatically), it does not work well.

@ericmjl
Copy link
Owner

ericmjl commented Nov 8, 2018

Thanks @ahoc! Looking forward to seeing your PR #500 completed and merged in 😄.

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

2 participants