-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marker.color_array
doesn't support Vec<f64>
anymore?
#141
Comments
Migration doneHi, I just migrated to the latest plotly.rs (v0.9.0) without much effort. Thanks for the job. The implementation of Other issueHowever, after the migration, I find something unexpected:
Here are two HTML files: dos.zip
My machine:
AdviceBesides, I have an advice (just an advice, if not feasible, I can just maintain a fork with my own modifications): The The original HTML file of the screenshot is enclosed here: tdm_smeared.zip Thanks again and look forward to you reply! |
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: