nxviz icon indicating copy to clipboard operation
nxviz copied to clipboard

plotting into figure and axis

Open ahoc opened this issue 7 years ago • 1 comments
trafficstars

  • 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.

ahoc avatar Nov 06 '18 20:11 ahoc

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

ericmjl avatar Nov 08 '18 00:11 ericmjl