[julia-users] Plots with scale bars

2016-08-08 Thread Islam Badreldin
Hello, Is there a simple way in Julia to add scale bars with labels to plots and to hide the x-y axes as well? The way to do in MATLAB involves a lot of manual tweaking as described here http://www.mathworks.com/matlabcentral/answers/151248-add-a-scale-bar-to-my-plot I'm hoping to find a more

Re: [julia-users] Plots with scale bars

2016-08-08 Thread Tom Breloff
There's a bunchof ways to do this with Plots. Draw the lines and add annotations or add an inset subplot with labels? I'm not at a computer... maybe I'll throw together an example later. On Monday, August 8, 2016, Islam Badreldin wrote: > > > Hello, > > Is there a simple way in Julia to add scal

Re: [julia-users] Plots with scale bars

2016-08-08 Thread Islam Badreldin
___ From: Tom Breloff Sent: Monday, August 8, 2016 1:03 PM Subject: Re: [julia-users] Plots with scale bars To: There's a bunchof ways to do this with Plots. Draw the lines and add annotations or add an inset subplot with labels? I'm not at a computer... maybe I'll th

Re: [julia-users] Plots with scale bars

2016-08-08 Thread Tom Breloff
ipes yet, but do you think that such a > scenario can be handled 'neatly' in a recipe while hiding all manual > tweaking from the end user? > > Thanks, > Islam > > _ > From: Tom Breloff > > Sent: Monday, August 8, 2016 1:03 PM > Subje

Re: [julia-users] Plots with scale bars

2016-08-10 Thread Tom Breloff
Sure. You could maybe make a recipe, or just make a function that does this. You'll probably want to make use of 'axis_limits' to get the data range. Like this: amin, amax = axis_limits(plt[1][:yaxis]) Here 'plt[1]' returns the first Subplot. On Wednesday, August 10, 2016, Islam Badreldin wrote