Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 22 17:56
    tlnagy commented #1306
  • Aug 22 17:55
    tlnagy closed #1306
  • Aug 22 17:55

    tlnagy on master

    make zenodo link point to the l… (compare)

  • Aug 22 17:48
    tlnagy commented #1307
  • Aug 22 17:47
    tlnagy labeled #1307
  • Aug 22 16:45
    CNOT opened #1307
  • Aug 21 22:38
    rapus95 opened #1306
  • Aug 13 04:13
    YP-Ye closed #1305
  • Aug 13 04:13
    YP-Ye commented #1305
  • Aug 13 00:09
    davidanthoff commented #1292
  • Aug 12 22:14
    Mattriks commented #1305
  • Aug 12 08:52
    YP-Ye opened #1305
  • Aug 11 22:36
    quinnj commented #1292
  • Aug 11 17:48
    bjarthur commented #1303
  • Aug 11 17:46
    bjarthur commented #1292
  • Aug 11 17:43
    tlnagy commented #1303
  • Aug 11 17:35
    bjarthur commented #1303
  • Aug 11 17:27
    tlnagy commented #1303
  • Aug 11 15:30
    Moelf synchronize #1303
  • Aug 11 13:24
    bjarthur commented #1303
Ben Arthur
@bjarthur
PR #957 rather. merged feb 22. adds Geom.abline
@msaitow recent versions of Gadfly allow you to use the shape aesthetic with Geom.point for circles, squares, triangles, etc.
see PR #991 re. shape with Geom.point. also provides better support for color and size
Ben Arthur
@bjarthur
@asbisen point stroke and fill color can be set with Theme default_color and discrete_highlight_color
Gregory Lemieux
@glemieux
I'm running through the Gadfly tutorial and I can't seem to get hstack to work. It's dumping a bunch of info about Compose.Context to the REPL. Anybody run into this before?
Ben Arthur
@bjarthur
what version of julia, gadfly, compose are you using? posting a code snippet would help
macepe
@macepe
Hello,
macepe
@macepe
Hello, I'm working with Julia v 0.5 and since yesterday Gadfly v 0.6.3 (installing anoher package updated my previous Gadfly v 0.5.3). The problem is that now it doesn't run anymore and gives me an error. Is there a solutions? Thanks!
Ben Arthur
@bjarthur
no solutions i can think of unless you post the error message and a snippet of code that i can run to reproduce it. happy to help if you give me more info
anothracc
@anothracc

Oh dear. Not much action on here at the moment. Here goes: something seems wrong with compose. The code from the documentation,

plot(sin, 0, 2pi,
Guide.annotation(
compose(context(), circle([pi/2, 3*pi/2], [1.0, -1.0], [2mm]), fill(nothing),
stroke("orange"))))

generates the output,

UndefVarError: compose not defined

in include_string(::String, ::String) at ./loading.jl:441

I'm using Julia 0.5.2 in the Jupyter notebook with packages updated to latest..... Help!

I should add: Pkg.status() shows

  • Gadfly 0.6.4
  • IJulia 1.6.2
  • Compose 0.5.4

Thanks in advance, Mark.

anothracc
@anothracc
Caught it myself: I'd forgotten, `using Gadfly, Compose'. Unbelievable.
Dave Kleinschmidt
@kleinschmidt
is it possible to do a rug guide for just one layer? in principle? it currently gives an error. The use case is to plot some data with a function overlaid on top (like a fitted distribution). but if I plot(layer(f, xmin, max)...) it puts all the generated x points on the rug guide as well.
matrixbot
@matrixbot
&Adam Anyone managed to get Gadfly working with Unitful? E.g.:
julia> using Gadfly; using Unitful;

julia> plot(x=[1;2;3]u"m/s", y=[1;2;3]u"s", Geom.line)
Error showing value of type Gadfly.Plot:
ERROR: DimensionError: s and 1 are not dimensionally compatible.
Stacktrace:
 [1] optimize_ticks_typed(::Unitful.Quantity{Int64,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)},Unitful.FreeUnits{(Unitful.Unit{:Second,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}(0, 1//1),),Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}}, ::Unitful.Quantity{Int64,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)},Unitful.FreeUnits{(Unitful.Unit{:Second,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}(0, 1//1),),Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}}, ::Bool, ::Array{Tuple{Float64,Float64},1}, ::Int64, ::Int64, ::Int64, ::Float64, ::Float64, ::Float64, ::Float64, ::Bool) at /home/adam/.julia/v0.6/Gadfly/src/ticks.jl:72
 [2] (::Gadfly.#kw##optimize_ticks)(::Array{Any,1}, ::Gadfly.#optimize_ticks, ::Unitful.Quantity{Int64,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)},Unitful.FreeUnits{(Unitful.Unit{:Second,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}(0, 1//1),),Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}}, ::Unitful.Quantity{Int64,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)},Unitful.FreeUnits{(Unitful.Unit{:Second,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}(0, 1//1),),Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}}) at ./<missing>:0
 [3] apply_statistic(::Gadfly.Stat.TickStatistic, ::Dict{Symbol,Gadfly.ScaleElement}, ::Gadfly.Coord.Cartesian, ::Gadfly.Aesthetics) at /home/adam/.julia/v0.6/Gadfly/src/statistics.jl:854
 [4] apply_statistics(::Array{Gadfly.StatisticElement,1}, ::Dict{Symbol,Gadfly.ScaleElement}, ::Gadfly.Coord.Cartesian, ::Gadfly.Aesthetics) at /home/adam/.julia/v0.6/Gadfly/src/statistics.jl:40
 [5] render_prepare(::Gadfly.Plot) at /home/adam/.julia/v0.6/Gadfly/src/Gadfly.jl:707
 [6] render(::Gadfly.Plot) at /home/adam/.julia/v0.6/Gadfly/src/Gadfly.jl:760
 [7] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/html")}, ::Gadfly.Plot) at /home/adam/.julia/v0.6/Gadfly/src/Gadfly.jl:1074
 [8] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::Gadfly.Plot) at /home/adam/.julia/v0.6/Gadfly/src/Gadfly.jl:1019
 [9] display(::Gadfly.Plot) at ./multimedia.jl:194
 [10] eval(::Module, ::Any) at ./boot.jl:235
 [11] print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:144
 [12] print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:129
 [13] (::Base.REPL.#do_respond#16{Bool,Base.REPL.##26#36{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:646
&Adam I saw GiovineItalia/Gadfly.jl#77 on the subject of using custom types, but afaik Unitful implements everything listed there, so it should work?
matrixbot
@matrixbot
&Adam I'm guessing the problem is here. typeof(one(typeof(1u"s"))) returns Int64 when it should return the same thing as typeof(1u"s"). I'll file a bug against Unitful to see if something can be done about that since this seems like a fairly reasonable thing from Gadfly's side.
&Adam Wait. No. The problem is on Gadfly's side. one should be oneunit.
&Adam Filing bug and PR.
Jason Sun
@jasonsun0310
someone here?
Ben Arthur
@bjarthur
on occasion, yes. but slack receives more traffic
Ben J. Ward
@BenJWard

Hi, I have two large arrays I'd like to plot using Geom.step:

julia> x
1540-element Array{Int64,1}:
       31
     5333
     5705
    59654
    60102
    84369
    84509
    90090
    90370
   115156
   115597
   241620
   242081
   301827
   302174
   308895
   308952
   317131
   317569
   322685
   323062
   335540
   336017
   342890
   34289526427167
 26427213
 26500111
 26501781
 26518811
 26518861
 26608055
 26608508
 26620485
 26620776
 26648561
 26648600
 26692314
 26692732
 26809035
 26809882
 26815877
 26815943
 26873409
 26874055
 26921649
 26922226
 26927014
 26928081
 26975502

julia> y
1540-element Array{Int64,1}:
   5379
      0
  53980
      0
  24298
      0
   5612
      0
  24817
      0
 126055
      0
  59778
      0
   6752
      0
   8210
      0
   5147
      0
  12509
      0
   6908
      0
  162170
  72965
      0
  17061
      0
  89225
      0
  12178
      0
  27854
      0
  43783
      0
 116351
      0
   6026
      0
  57497
      0
  47625
      0
   4819
      0
  47919
      0

If I do this, the plot looks like so:

image.png
The x axis should be a lot longer than the y axis, the peaks in the graph should be longer pleataus, but as y and x are scaled, you don't really get that impression.

So I tried using Coord.cartesian:

p = plot(x = x, y = y, Geom.step, Coord.cartesian(fixed=true))

It ends up looking the following:

image.png
Y becomes severly squashed and you can't really see it, how do I make the plot bigger so x is stretched out and y is much more readable? It seems Gadlfly makes the plots only occupy a fixed space of the browser.
GantZA
@GantZA
Hi, I'm trying to create a QQ plot of about 400 000 inter-arrival times using Stat.qq but julia either crashes or the resultant plot is far too large. Is there a way to plot this more efficiently?
plot_test = plot(
    x = test1[:ita],
    y = Exponential(mu),
    Stat.qq,
    Geom.point,
    style(default_color = colorant"green",
    highlight_width = 0pt,
    point_size=0.5pt));
GantZA
@GantZA
Ok nevermind, it seems the problem was that I was rendering the image using SVG. Using PNG fixes it
Jerry Ling
@Moelf
Hi Gadfly experts,
Julia 1.0 won't compile the current #master, seems like Arpack is broken
Jerry Ling
@Moelf
Gadfly cannot handle DateTime?
MethodError: no method matching one(::Type{Time})
Closest candidates are:
  one(!Matched::BitArray{2}) at bitarray.jl:392
  one(!Matched::Missing) at missing.jl:79
  one(!Matched::Type{ForwardDiff.Dual{T,V,N}}) where {T, V, N} at /home/akako/.julia/packages/ForwardDiff/hnKaN/src/dual.jl:258
James Sams
@jsams
Gadfly wouldn't run on my 0.6 install, so I tried biting the bullet and installed 1.0 . . . and it doesn't run there either. Is there anywhere it does run?
James Sams
@jsams
ugh, sorry, unexpected lunch meeting just got called
James Sams
@jsams
and back
Mattriks
@Mattriks
Check the issues page e.g. #1192, #1203, #1205, #1206, #1209
James Sams
@jsams
ok, so use master seems to be the solution
thanks!
James Sams
@jsams
ok, so, I'm really struggling here. I have a BIG presentation in 2 days, and I was trying to redo some graphs, and everything seems kind of broken right now
(big==2 day job interview based on the presentation)
what setup should I be running so that things JustWork?
Mattriks
@Mattriks
Be more specific e.g. what backend are you plotting to? png, svg, pgf etc
James Sams
@jsams
sorry, pdf
and it looks like the Fontconfig dependency is broken
ERROR: Unsatisfiable requirements detected for package Fontconfig [186bb1d3]:
 Fontconfig [186bb1d3] log:
 ├─possible versions are: [0.0.1-0.0.2, 0.1.0-0.1.1] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.0.1-0.0.2, 0.1.0-0.1.1]
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left
unfortunate that the 1.0 transition is a little more difficult for some packages
Mattriks
@Mattriks
Its a known issue in GiovineItalia/Compose.jl#299. I think you can do import Cairo, but without import Fontconfig
James Sams
@jsams
ok
Jerry Ling
@Moelf
Can I plot histograms based on location, height information? instead of an array of data point?
Aaron
@rapus95
Hey, is there an easy way to plot a matrix with its contents both as color aswell as as text?