You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just updated the dependencies of my tiny tool rsgrad, and found there are some breaking change related to color in plotly-rs. The ColorWrapper was removed, and the method impl Color for f64 was also removed. This means I have to transform Vec<f64> to Vec<impl Color> manually, which is rather fussy (I have to write a function to transform f64 to Box<dyn Color> according to each given ColorScalePallete). However, there are still marker.cmin(), marker.cmid() and marker.cmax() methods in API document, the question is do them change anything?
In the latest version of plotly-rs(0.8.3), I have no idea on how to assign the colors for each point in a trace like before (for example, the last fig of ncl bandstructure just used this feature). The examples in plotly-rs book are obsolete, while the large_data_sets in examples/basic_charts/src/main.rs just removes the support of color_array. All these changes just prevented me from adapting the new API of plotly, especially the 'new features' related to color.
So my question is could you please add an example on how to feed marker.color_array() with Vec<f64> or something like that to the documents?
The text was updated successfully, but these errors were encountered:
Hi,
I just updated the dependencies of my tiny tool rsgrad, and found there are some breaking change related to
color
inplotly-rs
. TheColorWrapper
was removed, and the methodimpl Color for f64
was also removed. This means I have to transformVec<f64>
toVec<impl Color>
manually, which is rather fussy (I have to write a function to transformf64
toBox<dyn Color>
according to each givenColorScalePallete
). However, there are stillmarker.cmin()
,marker.cmid()
andmarker.cmax()
methods in API document, the question is do them change anything?In the latest version of
plotly-rs
(0.8.3), I have no idea on how to assign the colors for each point in a trace like before (for example, the last fig of ncl bandstructure just used this feature). The examples in plotly-rs book are obsolete, while thelarge_data_sets
inexamples/basic_charts/src/main.rs
just removes the support ofcolor_array
. All these changes just prevented me from adapting the new API ofplotly
, especially the 'new features' related tocolor
.So my question is could you please add an example on how to feed
marker.color_array()
withVec<f64>
or something like that to the documents?The text was updated successfully, but these errors were encountered: