|
From: | Michael D Godfrey |
Subject: | Re: Scale problem using plot() |
Date: | Mon, 25 Oct 2010 21:32:04 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Thunderbird/3.1.4 |
Forgot to cc the list. -------- Original Message --------
On 10/25/2010 06:48 PM, Ben Abbott wrote: OK. I get:Please try ... close all inputs outputs plot(in) hold on plot(out,'r'); plot_title=strcat('Seasonal adjustment of: ', plot_title); title(plot_title) grid on ylim_before_ticks = get (gca, "ylim") set (gca (), "xtick", [0 12 24 36 48 60]); set (gca (), "ytick", [56 70 84 98 112 126 140]) ylim_after_ticks = get (gca, "ylim") set (gca(), "ylim", [56 140]) set (gca(), "xlim", [0 60]) ylim_after_ylim = get (gca, "ylim") I expect the result below ... ylim_before_ticks = [60 140] ylim_after_ticks = [60 140] ylim_after_ylim = [56 140] Ben octave:1> plot_test2 ylim_before_ticks = 60 140 ylim_after_ticks = 60 140 ylim_after_ylim = 56 140 octave:2> get(gca(),"ytickmode") ans = manual octave:3> get(gca(),"ylimmode") ans = manual octave:4> ===================================== So, if this is all as you expected, the next step is to try to explain this in the Manual. It is a pretty common requirement to set x and y axes so that specific points are indicated, like this example. So, this should be made as straightforward as possible. A good place for an example in the Manual. Also, the plot is correct, and exactly what I wanted. Thanks, Michael |
[Prev in Thread] | Current Thread | [Next in Thread] |