Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: How to make graph file smaller

Subject   st: Re: How to make graph file smaller
Date   Thu, 30 Mar 2006 12:04:13 +1100

Hi Michael

Thanks. The graph is now one thousandth of its original size (from 8Mb to
8kb in size).


Pramod Adhikari

Date: Mon, 27 Mar 2006 17:15:37 -0500
From: "Michael Blasnik" <>
Subject: st: Re: How to make graph file smaller

It sounds like you may have a graph with 50 circles but they are each drawn

thousands of times, creating a very large graph file.  You could try first
just keeping one observation for each combination you wish to graph and
issue the graph command:

bysort seifa_rank ord_rank pop: keep if _n==1

Michael Blasnik

- ----- Original Message -----
From: <>
To: <>
Sent: Sunday, March 26, 2006 7:41 PM
Subject: st: How to make graph file smaller
> I generated a scatterplot with the following syntax:
> scatter  seifa_rank ord_rank [freq=pop],  msize(large)  msymbol(Oh
> orange)
> ylabel(1(1)10)
>         ytitle("Rank on SEIFA IRSD") xtitle("Rank on SEI");
> The data relate to 915,000 records, and there are 50 circles to draw
> (10*5). However, the graph file is very large, in excess of 8Mb in size.
> tried translating to different formats using  syntax similar to:
> translate mygraph newgraph , translator(gph2prn).

Free publications and statistics available on

*   For searches and help try:

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