plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
16.75k stars 1.84k forks source link

Choose levels for the contours in the contour and surface plot #4503

Open archmoj opened 4 years ago

archmoj commented 4 years ago

From https://community.plot.ly/t/choose-levels-for-the-coutours-in-the-contour-plot/8959

Feature to draw contours on certain locations similar to iso-surface and volume: https://github.com/plotly/plotly.js/blob/216b58760aefdf8dd92c770f8ee7f62f38c03e95/src/traces/isosurface/attributes.js#L30-L39

rkube commented 3 years ago

+1 on this issue. It's very important to have equal contourlevels among different plots when comparing 2d time series data.

jonas-peter commented 3 years ago

I would actually be quite interested in this feature as well.

After doing some research I figured out that the colorbar itself is actually also an issue on this. I think the colorscale should also display the levels of the configured locations, but for every location the same length of little color rectangle. That is at least how it is configureable in matplotlib and I think it is quite intuitive.

Do I see it correctly that this would imply a pretty big change in the colorbar as well?