Julia Programming Language
Plot colour based on conditional
New to Julia
plotting
,
plot
gustaphe
September 29, 2022, 8:35pm
2
colorcond(x) = x<0 ? :red : :green x = randn(50) plot(x; color=colorcond.(x))
show post in topic
Related topics
Topic
Replies
Views
Activity
Plotting simple bar charts with Plots.jl with colors conditional on sign of values
General Usage
plotting
3
3073
June 22, 2021
Julia Plots.jl: changing marker colour from series recipe
Visualization
plots
,
recipe
3
1278
August 5, 2018
Change colours in contour plot
General Usage
package
,
plotting
4
3874
February 14, 2017
How to plot a scatter plot where the each specifies of the iris data set is given a different colour?
New to Julia
plotting
2
2055
June 24, 2019
How can I add a legend
General Usage
plotting
3
2765
February 16, 2020