Re: Unstable DATETICK
- From: TideMan <mulgor@xxxxxxxxx>
- Date: Tue, 26 Apr 2011 00:12:51 -0700 (PDT)
On Apr 26, 6:45 pm, Rune Allnor <all...@xxxxxxxxxxxx> wrote:
On Apr 26, 7:03 am, TideMan <mul...@xxxxxxxxx> wrote:
On Apr 26, 3:45 pm, Rune Allnor <all...@xxxxxxxxxxxx> wrote:
I have this annoying problem with DATETICK (R2010a):
I have a script that does a query towards a database and
extracts some data. The data are then processed in a number
of ways, and plotted in one figure along the lines of
The whole point of the plotting is that the gridlines
in the two subplots align, so it is easy to see co-variation
between the two data sets.
The problem is that this whole thing is unstable.
I make this kind of plot for a few dozen data sets, and
for the most part this works as desired.
But every now and then it doesn't.
The data are collected over a c. 8-week period. Most of
the time the grid lines align with weeks, which is OK.
Every now and then *one* subplot flips out, and aligns the
gridlines with the 1st of every month. This happens when I
run the script. When I backtrace the script in the debugger,
everything works as desired.
Does anyone have ideas what to look for?
I can't post examples since the data are extracted from a
Yes, and that's why I always do this:
That way, it cannot play funny buggers with me.
It can and it does, with me.
When I test your trick with the main axes in a figure window
(that is, subplot(1,1,1)) then things work as I want them to.
The problem is that I have these things in a subplot(6,2,1) window.
And there it breaks down. It also breaks down in subplot(6,2,3),
but not in subplot(6,2,5) - subplot(6,2,11) (axes at the right-
hand side are used for other stuff.) What's the difference
between these axes?
Now the problem becomes: How can I *force* datetick to set up
grid lines every 7 days over a 10'ish-week period? And not
automatically flip to one grid line at the first in each month?
Maybe subplot is the problem.
I never use subplot.
Instead I use:
axes('Position',[left bottom width height])
to position and size each panel.
This enables me to squash the plots up if I need to like this:
- Re: Unstable DATETICK
- From: Rune Allnor
- Re: Unstable DATETICK
- Prev by Date: Re: Scripting CATIA V5 from Matlab via COM interface
- Next by Date: Additive Dynamic Plotting
- Previous by thread: Re: Unstable DATETICK
- Next by thread: Re: Unstable DATETICK