PMEAL / OpenPNM

A Python package for performing pore network modeling of porous media
http://openpnm.org
MIT License
454 stars 174 forks source link

colorbar plot #2756

Closed kunal0kumar0sinha closed 1 year ago

kunal0kumar0sinha commented 1 year ago

I am trying to get color bar for this, but unable to do this. Code line- op.visualization.plot_connections(network=pn, color_by=qthroat, linewidth=3, ax=ax) = plt.axis('off') Can you please help

image

jgostick commented 1 year ago

Try catching the object returned by the plot function in a variable, like ax, then doing plt.colorbar(ax). I think that should work but not able to check right now.