Works great for gr and pyplot backends, but still trouble with plotlyjs



On Wednesday, October 12, 2016 at 2:53:19 PM UTC-4, Tom Breloff wrote:
>
> This should be fixed on master now.  Just add "link = :all" to your 
> original example.
>
> On Wed, Oct 12, 2016 at 2:48 PM, r5823 <jmel...@gmail.com <javascript:>> 
> wrote:
>
>> Tom, I appreciate the quick response. Your example does produce a plot 
>> with the appropriate ylimits, however the use of subplots is important for 
>> my application since I have multiple data sets of varying size that I would 
>> like to show on different subplots with a common set of ylimits (or 
>> xlimits). Thanks for looking into this!
>>
>>
>>
>> On Wednesday, October 12, 2016 at 2:23:33 PM UTC-4, Tom Breloff wrote:
>>>
>>> This should work as you want:
>>>
>>> plot([[1, 2, 4],[1,5,10,3]], layout=2, link=:all)
>>>
>>> There seems to be a bug with the link attribute when combining 
>>> subplots.  I'll look into it.
>>>
>>> On Wed, Oct 12, 2016 at 2:13 PM, r5823 <jmel...@gmail.com> wrote:
>>>
>>>> Is there a way to make the yaxis and/or the xaxis limits uniform across 
>>>> subplots in Plots.jl?
>>>>
>>>> For example, given the code:
>>>>
>>>> using Plots
>>>> gr()
>>>> p1 = Plots.plot([1, 2, 4])
>>>> p2 = Plots.plot([1,5,10,3])
>>>> Plots.plot(p1,p2,layout=(1,2))
>>>>
>>>> The hope would be to substitute something along the lines of 
>>>> Plots.plot(p1,p2,layout=(1,2), layout_ylim=:auto) that would result in a 
>>>> ymax for both subplots being 10. Similarly, something along the lines of 
>>>> Plots.plot(p1,p2,layout=(1,2), layout_xlim=:auto) to make the xmax for 
>>>> both 
>>>> subplots be 4
>>>>
>>>
>>>
>

Reply via email to