【发布时间】:2022-01-23 11:14:43
【问题描述】:
假设我有以下示例代码
using PlotlyJS
using CSV, DataFrames
df = dataset(DataFrame, "iris")
plot(
df, x=:sepal_width, y=:sepal_length, color=:species,
mode="markers"
)
我该如何为每个组指定颜色,例如如果我想让 setosa 变成黄色?
正是这个Plotly-Express: How to fix the color mapping when setting color by column name 但我在 julia 需要它。我无法让 color_discrete_map 工作...
【问题讨论】:
标签: plotly julia uicolor plotly.js