mendeleev icon indicating copy to clipboard operation
mendeleev copied to clipboard

How to add color bar to the plots

Open yanghan234 opened this issue 2 years ago • 1 comments

Dear developers,

I'm trying to plot the periodic table with my own element-wise data, and I want to add a color bar to the plot. Is there any temporary solution for this? Thank you!

yanghan234 avatar Sep 26 '23 08:09 yanghan234

Hey! It would be much easier to help if you provide a concrete case you're dealing with, i.e. self-contained code, reproducible code example.

Current plotting backends mendeleev uses are plotly and bokeh and plotting functions return a Figure object which can be further modified. Here's an example on how to add a colorbar to existing plotly figure.

lmmentel avatar Sep 27 '23 20:09 lmmentel