Thanks a lot, Darwin, that works perfectly!

On Thursday, 22 January 2015 18:13:39 UTC+1, Darwin Darakananda wrote:
>
> You can use:
>
> plot(x=rand(10), y=rand(10), Geom.line, Coord.Cartesian(ymin=-0.1,ymax=0.1
> ))
>
> I think applying
>
> Scale.y_continuous(minvalue=-0.10, maxvalue=0.10)
>
> should do the same thing, but it's currently not working the way it should.
>
> On Wednesday, January 21, 2015 at 4:36:49 PM UTC-8, Ken B wrote:
>>
>> I'm trying to plot some Geom.lines with Gadfly, but some results are way 
>> off, so I'd like to keep my y-axis plot between some hard limits. 
>>
>> The current minvalue and maxvalue arguments stretch out the graph, 
>> however if there are datapoints outside these min/maxvalues, the axis will 
>> scale anyway.
>>
>> For a simple example:
>>
>>     plot(x=rand(10), y=rand(10), Geom.line, 
>> Scale.y_continuous(minvalue=-0.10, maxvalue=0.10))
>>
>> here I would actually want the plot to be limited in the Y-axis to the 
>> range -0.1 ; 0.1, not stretched out to any value higher than 0.1
>>
>> I've found a related issue (
>> https://github.com/dcjones/Gadfly.jl/issues/280) but I don't understand 
>> the solution.
>>
>> Thanks,
>> Ken
>>
>

Reply via email to