load 'plot' pd +"0/~1 o. i:6j99 [ pd 'type surface' [ pd 'reset' pd 'show cairo 1000 1000' NB. This opens a "plot.pdf" file pd 'save png testPNG5.png' First display an isigraph Plot.
On Tue, Mar 31, 2020 at 5:39 PM David Mitchell <[email protected]> wrote: > Sorry, I did not include all the commands: > > load 'plot' > pd +"0/~1 o. i:6j99 [ pd 'type surface' [ pd 'reset' > pd 'show cairo 1000 1000' > pd 'save png testPNG5.png' > > dir'*5.png' > testPNG5.png 125466 31-Mar-20 17:38:52 > > On 3/31/2020 16:48, Devon McCormick wrote: > > This is what I see: > > load 'plot' > > pd +"0/~1 o. i:6j99 [ pd 'type surface' [ pd 'reset' > > pd 'save png testPNG4.png 1000 1000' > > First display an isigraph Plot. > > > > Is this affected by the global settings in the "j" namespace for > > "ImageViewer", "PDFReader", and "EPSReader"? > > > > On Tue, Mar 31, 2020 at 4:36 PM David Mitchell <[email protected]> > > wrote: > > > >> The 1000 1000 parameters are not used for png, as far as I can tell. > >> > >> https://code.jsoftware.com/wiki/Plot/Commands > >> > >> On 3/31/2020 16:11, Devon McCormick wrote: > >>> Hi - > >>> > >>> I have been looking at the "plot" (pd) commands for the first time in a > >>> while and it looks like there is currently no way to generate a plot > and > >>> save it as an image file programmatically. Is this true? > >>> > >>> I recall in the past I was able to generate and save a large group of > >> plots > >>> without manual intervention. Looking at the existing plot commands ( > >>> https://code.jsoftware.com/wiki/Plot/Commands) it seems the only > output > >>> type that allows this is "isi" (for "isigraph") which has not been > >>> supported since J6. > >>> > >>> Am I missing something? Must I resort to a laborious work-around of > many > >>> manual steps to save a plot image to file? > >>> > >>> Thanks, > >>> > >>> Devon > >>> > >> ---------------------------------------------------------------------- > >> For information about J forums see http://www.jsoftware.com/forums.htm > >> > > > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA Quantitative Consultant ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
