Timeline for Automatically coloring plot labels the same as the plotted curves
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2020 at 9:23 | history | edited | CommunityBot |
Commonmark migration
|
|
Nov 24, 2018 at 16:45 | comment | added | Jerry | @MichaelE2 It's great, thanks too! ;) I just see and use it on answer to this question mathematica.stackexchange.com/questions/627/1-plot-2-scale-axis/… | |
Apr 16, 2017 at 16:18 | comment | added | Michael E2 |
@Jerry You can avoid evaluating the plot twice, which is usually quick for ListLinePlot but not always quick for other plotter, with the following: theme = "Web"; styles = "DefaultPlotStyle" /. (Method /. Charting`ResolvePlotTheme[theme, ListLinePlot]); lbls = MapThread[Style[Last[#1], #2, 14] &, {data, PadRight[{}, {Length@data}, styles]}];
|
|
Apr 16, 2017 at 15:37 | history | edited | m_goldberg | CC BY-SA 3.0 |
Addressed issue raised in a comment
|
Apr 16, 2017 at 15:22 | vote | accept | Jerry | ||
Apr 16, 2017 at 15:21 | comment | added | Jerry | I see, thanks for your kind help;) | |
Apr 16, 2017 at 15:20 | comment | added | m_goldberg | @Jerry. I don't know how to do it without re-evaluating the plot. However, when the plot is not rendered on the screen as in the 1st evaluation, it takes far less time than a rendered plot, so the performance hit is not as severe as you might think. | |
Apr 16, 2017 at 15:10 | comment | added | m_goldberg |
@Jerry. Take a look at FullForm[plt] .
|
|
Apr 16, 2017 at 15:05 | comment | added | Jerry |
why plt/.{PlotLabels->lbls} doesn't work?
|
|
Apr 16, 2017 at 15:00 | comment | added | Jerry | Great! but ListLinePlot shall be executed twice, I doubt the performace go down. | |
Apr 16, 2017 at 14:52 | history | answered | m_goldberg | CC BY-SA 3.0 |