> From: David Vincent-Jones
> Sent: Tuesday, 15 June 2010 12:40
>
> On Sat, 2010-06-12 at 16:47 +1200, Sherlock, Ric wrote:
> > Can you elaborate? If we can pinpoint what is inconsistent/confusing
> > we can try and clarify it on the wiki?
>
> A couple of questions .... a simple plot
>
> pd 'reset'
> pd 'textfont arial 40'
> pd ? 100#100
> pd 'show'
> pd 'save png "/home/david/Desktop/test.png" 600 400'
> |domain error: isi_png
> | comp=.<.{.((-.msk)#num) ,comp
>
> 1. Textfont 12, 20 ... 40 nothing changes on the plot or the
> printout.
Nothing changes because the textfont option applies to the text commands
http://www.jsoftware.com/jwiki/Plot/Commands#DrawingCommands not the font of
the labels. There are different font options for different parts of the plot:
captionfont, keyfont, labelfont, subtitlefont, symbolfont, textfont, titlefont
http://www.jsoftware.com/jwiki/Plot/Options
> 2. 'save bmp' works just fine but not 'save png' .... why
The different file formats for the save command have different options
http://www.jsoftware.com/jwiki/Plot/Commands#Copycommands . From that page,
only the 'save bmp' format takes a width and height.
pd 'reset'
pd 'labelfont arial 40'
pd ? 100#100
pd 'show'
pd 'save png ', jpath '~temp/test.png'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm