nxviz
nxviz copied to clipboard
plotting into figure and axis
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.
Thanks @ahoc! Looking forward to seeing your PR #500 completed and merged in :smile:.