Hi,

  IupPlotInsert does not directly "update" AXS_YMAX. It just inserts the
point in the curve. When AXS_YAUTOMAX=Yes, AXS_YMAX is calculated when the
plot is redraw. So they are not related.

  What's probably going on is that the current dataset is pointing to a
different dataset than expected. This can occur because in dataset 4 you
did nothing, and the current dataset is changed when IupPlotEnd is called.
That's why your workaround fixed the problem by adding a dummy point.

Best,
Scuri


2017-08-08 15:52 GMT-03:00 Pete Lomax via Iup-users <
iup-users@lists.sourceforge.net>:

> Adding values via IupPlotInsert does not update AXS_YMAX under
> AXS_YAUTOMAX properly, in one case.
> I have four tabs, each with a plot of 7 datasets on it, updated
> dynamically (it looks for the previously quickest and extends that set).
> The AXS_YAUTOMAX works fine on tabs 2..4, just not on the first tab. In
> that case I'm not adding anything to dataset 4, which I have
> realised is causing the problem, and have fixed things by invoking
> IupPlotInsert on tab1/set4 with the equivalent of {0,0} in setup.
>
> My question is, should IupPlotInsert for datasets 5..7 set AXS_YMAX when
> dataset 4 is empty?
>
> Since I have a workaround, I'm perfectly happy - just thought you should
> know about this.
>
> Pete
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to