I'm using Gadfly to plot data in Julia. I have x = an array of floats, and several y1, y2, y3 ... of matching length. How to I plot all the points (x,y1) in green, (x,y2) in red, etc. in one Gadfly plot?
How to overplot multiple arrays of data in one Gadfly plot?
3.7k Views Asked by DarenW At
2
There are 2 best solutions below
0
Tom Breloff
On
This sort of stuff is simple with my package https://github.com/tbreloff/Plots.jl:
julia> using Plots; scatter(rand(10,3), c=[:green,:red,:blue])
Related Questions in PLOT
- R is ignoring xaxp while plotting data.table
- From Python to R: how can I plot a vector with 100 regression lines within a ggplot?
- 'plotAtlas' function in Morpho package
- Trying to plot two polygons on the same cartesian grid with a different color for each polygon
- Strange horizontal lines when transforming base-map shapefile?
- Adding white space around plot in Matplotlib
- Plot function issue - adding a line
- Seaborn boxplot color outliers by hue variable using seaborn =< 0.12.2
- how to add multiple plot in alternating plotly html file in python
- Manually set values shown in legend for continuous variable of seaborn/matplotlib scatterplot
- Set the color of the line with the same color of the marker
- Do not want scientific notation on plot axis again
- How to prevent Pandas from plotting index as Period?
- Change size of terminal_panel = node_barplot in ctree
- Excel VBA Macro Resizing the Plot Area
Related Questions in JULIA
- Getting updates from SDE solver in Julia
- Why am I getting MethodErrors when using continuous callback in Julia ODE solver?
- Using tickformat in a Makie.jl colorbar
- Julia - Second-order ODE gives wrong results
- Integrals of multiple variables with some of the limits depending on variables (Julia)
- julia Jupyter on() interaction error message
- Overlaying contour lines for a specific value
- Trouble with passing data from DataLoader to Learner in FluxTraining.jl for UNet model
- Is there a ´right´ way to get CSFML.jl in Julia to work on MacOS?
- Build Python executable with Julia dependencies
- Rust performance vs Julia
- PlotlyJS.jl LaTeX integration in VS Code
- Julia syntax error @kwdef with default value as string
- Plot array of Figures Mathplotlib
- data type in Julia and MLJ
Related Questions in GADFLY
- Gadfly xticks number in Julia histogram
- Using color of `Geom.hline` as aesthetic in Gadfly
- how to draw this with gadfly in julia
- Plotting nxn matrix as a headmap in Gadfly
- 'stack order' in Gadfly histogram
- How to annotate a Gadfly heatmap?
- How to add point size to a Gadfly (Julia) scatter plot based on a variable
- Specify colors in a Gadfly (Julia) boxplot
- Using Geom.abline in Gadfly without using Geom.point
- Cannot plot with Gadfly when running script with `julia -i`
- free_y_axis does not work in Gadfly (Julia)
- How to modify superscripts in Julia (labels of Gadfly plots)?
- Plotting Algebraic Curves in Julia
- using Gadlfy.jl and AlgebraOfGraphics.jl within same notebook causes MethodError
- How do I sort a bar chart in ascending or descending order in Julia's Gadfly? (Does anyone know a less hacky way?)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

You can put the data in a DataFrame, with three columns,
x,yandgroup, and use the group as a colour aesthetic.As suggested in the comments, you could also use layers: