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
- Interactive plotting with R raster: values on mouseover
- Octave Real time plotting
- draw the y-label on the top of y axis
- How to use plotyy for 2 different plots inside a subplot?
- MatLab 3-vector plot/mesh with colour-scale
- Display value of Y axis inside GUI plot
- term frequency over time: how to plot +200 graphs in one plot with Python/pandas/matplotlib?
- R: ggplot2: Unable to plot points from a data.frame
- Combine base and ggplot graphics in R figure window in different pages
- Categorical scatter plot in Matlab
- Python3 embedding Matplotlib Plot inside GTK3 using Glade
- Plot: Add legend that overlay several Frames
- R: melting a data.frame to use in ggplot2 for multiple y-value plot
- Matlab: discontinuous plot
- How to plot colors on CIE 1931 Color Space in Matlab?
Related Questions in JULIA
- Julia parallel programming - Making existing function available to all workers
- Can I use a subtype of a function parameter in the function definition?
- Matching of array elements in Julia
- Julia: Enforce constraints on objects in a container?
- Why 2 ^ 3 ^ 4 = 0 in Julia?
- Packing int and float to byte arrays in Julia
- Julia: How do I create a macro that returns its argument?
- Can I use Julia to program my GPU & CPU?
- Julia: Calling GSL functions
- Append error in python
- Memory allocation in a fixed point algorithm
- Using Julia, what's the accepted way to deal with data stored in external databases?
- Can I make a Julia package containing multiple modules that can be independently imported?
- Is there a way to plot graph in julia while executing loops?
- How do I create a recursive typealias in julia?
Related Questions in GADFLY
- How to plot a linear function using Gadfly.jl in Julia?
- How to change the color key using Gadfly's `Scale.color_discrete_manual` in Julia?
- How to plot a 2D function in general form using Gadfly in Julia?
- How to pass a function to julia Gadfly Theme parameter
- Gadfly: How to set number of sampling points when plotting functions?
- Julia: Drawing of a table besides a plot
- Julia: Gadfly size of colorbar
- How to overplot multiple arrays of data in one Gadfly plot?
- Plotting two "slang of graphics" layers in Gadfly
- Julia plotting unknown number of layers in Gadfly
- Grid of Plots in Julia
- Render Gadfly plots directly to a Gtk canvas
- How to add point size to a Gadfly (Julia) scatter plot based on a variable
- How to annotate a Gadfly heatmap?
- Specify colors in a Gadfly (Julia) boxplot
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 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: