I see. Ok Thank you

Am Mittwoch, 15. Juni 2016 00:16:54 UTC+2 schrieb Tom Breloff:
>
> For the first one, you'll need to wrap that tuple:  `plot(rand(10), 
> xaxis=((0,5),))`  Lesson... axis is expecting a tuple of args, so if you 
> give it one it'll try to do something with each arg.
>
> For the second one, it's updating the tick marks, because that's what it 
> assumes a list of numbers represent.
>
> You should probably avoid the "magic args" for this case:  `plot(rand(10), 
> xlims = (0,5))`
>
> See: http://plots.readthedocs.io/en/latest/attributes/#magic-arguments
>
> On Tue, Jun 14, 2016 at 6:04 PM, digxx <[email protected] <javascript:>
> > wrote:
>
>> HEy, Sorry for the maybe stupid question but apparently I'm not capable 
>> of setting the range when plotting with plots
>>
>> so e.g.
>>
>> x=0:0.1:1
>> y=2*x
>>
>> plots(x,y,xaxis=(0,0.5)
>> this does not work.
>>
>>
>>
>> and this deletes my xaxis labeling?
>> plots(x,y,xasis=0:0.5)
>>
>>
>> Anyway I just want to set range without changing the input vector.
>>
>>
>

Reply via email to