Thanks Tom, that works fine.
> On Feb 1, 2016, at 13:15, Tom Breloff <[email protected]> wrote:
>
> You are passing in a vector for the grid argument... it needs to be a matrix
> (1 x 2).
>
> In Plots, the arguments are sliced up into columns before building the plot.
> So in my example, the call is similar to:
>
> subplot(plot(rand(100), grid=true), plot(rand(100), grid=false))
>
> however your call is similar to:
>
> subplot(plot(rand(100), grid=[true, false]), plot(rand(100), grid=[true,
> false]))
>
> You're passing a boolean vector to both series, whereas I am passing a
> boolean. Let me know if you need any more explanation.
>
> On Mon, Feb 1, 2016 at 2:33 PM, Rob J. Goedman <[email protected]
> <mailto:[email protected]>> wrote:
> Thanks Tom,
>
> Gets a bit further. Final subplot(rand(100,2)) works fine.
>
> Regards, Rob
>
> julia> using Plots
>
> julia> gadfly(size=(400,200))
> Plots.GadflyPackage()
>
> julia> subplot(rand(100,2), grid=[true, false])
> [Plots.jl] Initializing backend: gadfly
> ERROR: TypeError: non-boolean (Array{Bool,1}) used in boolean context
> in updateGadflyPlotTheme at
> /Users/rob/.julia/v0.4/Plots/src/backends/gadfly.jl:490
> in _postprocess_subplot at /Users/rob/.julia/v0.4/Plots/src/subplot.jl:270
> in subplot! at /Users/rob/.julia/v0.4/Plots/src/subplot.jl:350
> in subplot at /Users/rob/.julia/v0.4/Plots/src/subplot.jl:186
>
> julia> Pkg.installed("Plots")
> v"0.5.1+"
>
> julia> Pkg.installed("Gadfly")
> v"0.4.2"
>
> julia> subplot(rand(100,2))
>
> julia>
>
>> On Feb 1, 2016, at 10:48, Tom Breloff <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> This should work on master. Do Pkg.checkout("Plots"). Before that, you
>> would do "gadfly(); default(size=(400,200))"
>>
>> On Mon, Feb 1, 2016 at 1:12 PM, Rob J. Goedman <[email protected]
>> <mailto:[email protected]>> wrote:
>> Hi Tom,
>>
>> Which version of Plots are you using?
>>
>> Rob
>>
>> <tmp.png>
>>
>>
>> julia> using Plots
>>
>> julia> gadfly(size=(400,200))
>> ERROR: ArgumentError: function gadfly does not accept keyword arguments
>>
>> julia> Pkg.installed("Plots")
>> v"0.5.1"
>>
>> julia> versioninfo()
>> Julia Version 0.4.3
>> Commit a2f713d (2016-01-12 21:37 UTC)
>> Platform Info:
>> System: Darwin (x86_64-apple-darwin13.4.0)
>> CPU: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
>> WORD_SIZE: 64
>> BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
>> LAPACK: libopenblas64_
>> LIBM: libopenlibm
>> LLVM: libLLVM-3.3
>>
>>
>>> On Feb 1, 2016, at 06:38, Tom Breloff <[email protected]
>>> <mailto:[email protected]>> wrote:
>>>
>>> It's certainly possible, as I can do this:
>>>
>>> <tmp.png>
>>>
>>> Looking at my source
>>> (https://github.com/tbreloff/Plots.jl/blob/master/src/backends/gadfly.jl#L490-L492
>>>
>>> <https://github.com/tbreloff/Plots.jl/blob/master/src/backends/gadfly.jl#L490-L492>)
>>> it seems like I'm setting the "grid_color" keyword in the "Gadfly.Theme"
>>> constructor to match the background color. However that seems to be what
>>> you already tried, so I'm not sure what's different. I tried this is
>>> IJulia and at the REPL... both results were the same for me.
>>>
>>> On Mon, Feb 1, 2016 at 8:58 AM, Jon Norberg <[email protected]
>>> <mailto:[email protected]>> wrote:
>>> I have searched and tried a few things but cannot remove the background
>>> grids in Gadfly. Its probably simple and I am missing something
>>> obvious...Any suggestions would be appreciated.
>>>
>>> layer(x=E,y=wetness(E,10.0), Geom.line,Theme(default_color=a[1],
>>> line_width=2pt, grid_color=colorant"white")
>>>
>>> also tried grid_line_width=0pt
>>>
>>> but they still show up ( I save it as SVG, but also output in jupiter shows
>>> them)
>>>
>>
>>
>
>