Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Too much time to draw a graph


From   [email protected] (Vince Wiggins, StataCorp)
To   [email protected]
Subject   Re: st: Too much time to draw a graph
Date   Wed, 21 Oct 2009 12:55:00 -0500

Shoji TOKUNAGA <[email protected]> reports that a -histogram- on a
reasonable size dataset takes more than 10 minutes to draw,

> . histogram value if itemcode == 3
> (bin=23, start=7.8000002, width=.38695655)
> .... long time passing .....

Shoji goes on to correctly associate the delay with the value label assigned
to his variable,

> . desc value
>
>               storage  display     value
> variable name   type   format      label      variable label
> -------------------------------------------------------------
> value           float  %10.0g      value      value
>
> . label list value
> value:
>           -1 minus
>    999999999 plus/minus

If the value label is removed from his variable, the histogram draws
immediately.

The graphics engine is not efficiently handling the large gap in the values
for which Shoji is defining labels.

We will make this more efficient in a future update.

In the interim, removing the label or avoiding extremely large gaps in the
values being labeled will make such graphs draw faster, sometimes much faster.

 
-- Vince 
   [email protected]

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index