I'm still running into a problem with this, for some reason, it shows two separate windows, the first one with marked "Figure 1", with the error bars, labels, and the mean, and another one marked "Figure 2", with just the median, marked with the squares.
I tried both with a checkout of master and of dev of Plots.jl. I'm on Julia v0.4.5 <https://lh3.googleusercontent.com/-WeElKK5XPzk/VzJwbOfRhmI/AAAAAAAAMBM/pPNfBNKbO8wK9_dIw1ofji4QK5Lo0dK5ACLcB/s1600/sfplot.tiff> Any ideas? Thanks again!!! Note: v0.5 is totally hosed at the moment, it seems, I get an error: *ERROR: LoadError: InitError: type Method has no field func* * [inlined code] from /Users/scott/.julia/v0.5/Requires/src/Requires.jl:3* * in (::Requires.##8#9)() at /Users/scott/.julia/v0.5/Requires/src/init.jl:17* * in __init__() at /Users/scott/.julia/v0.5/Requires/src/init.jl:24* * in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:174* * in _require_from_serialized(::Int64, ::Symbol, ::Bool) at ./loading.jl:202* * in require(::Symbol) at ./loading.jl:332* * in stale_cachefile(::String, ::String) at ./loading.jl:562* * in recompile_stale(::Symbol, ::String) at ./loading.jl:579* * in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:173* * in require(::Symbol) at ./loading.jl:365* * in include_from_node1(::String) at ./loading.jl:426* * in eval(::Module, ::Any) at ./boot.jl:230* *during initialization of module Requires* *.* On Monday, May 9, 2016 at 11:09:27 AM UTC-4, Tom Breloff wrote: > > I haven't ever needed to plot > > > Wh---whaaat?? ;) > > This is pretty straightforward: > > > > > > Note: you might need to checkout master or dev of Plots (I'm on dev)... I > can't ever remember when I implemented anything. > > On Mon, May 9, 2016 at 10:24 AM, Scott Jones <scott.pa...@gmail.com > <javascript:>> wrote: > >> My son Alex is building on what he did last year for his science project, >> where he used Julia to help do the calculations on the data he'd collected >> (basically, he's lazy [in a good way], he'd rather work with his dad to >> learn how to program something rather than do all all the basic arithmetic >> to calculate things like the averages for his plots, and Julia made it >> trivial). >> This year, in math class, he's learned about calculating also the median, >> mode(s), and the ranges, and he'd like to be able to plot the results >> directly in Julia (last year, since I didn't know how, he ended up doing >> the plotting by hand). >> >> He's written a program (with a little help from me) that inputs the data >> from a CSV file (thanks, Jacob Quinn, for the CSV.jl package!) that he's >> entered with Excel. >> The data is simply a value, integer 0 - 7 (for the number of digits >> remembered correctly after seeing a card with 7 digits for 30 seconds, and >> reciting the alphabet). >> >> The program first makes of sorted vector of the unique ages in the data >> set, and then creates a Vector of Vector of Int, each element having all of >> the results for that age. >> Then it uses that to create 4 vectors, mean_by_age, median_by_age, >> low_range, and high_range. >> >> What we want to do, is to plot the ages on the X axis, with the results >> on the Y axis, as a line segment from the low_range to the high_range (with >> the top and bottom marked off with small horizontal lines), >> and also have plotted mean_by_age, and median_by_age with different >> colored lines with different markers (maybe diamonds and squares). >> He might also want to display the mode(s) for each age (might be nice to >> have those done as circles of different radius depending on how many >> samples at that mode value) >> >> I haven't ever needed to plot, so I haven't been able to help him very >> much, so far I'll I've been able to do is just call `plot(ages, >> mean_by_age, linewidth=3)` and `plot(ages, median_by_age, linewidth= 3)` do >> display two of the things he wants. >> >> Any help will be greatly appreciated! >> >> Thanks, >> Scott (proud father of a beginning Julia ;-) ) >> >> >> >