Hi Daniel,
I think it's impossible to create monochrome png images just by adding
the "monochrome" option, because the "png"-terminal does not support it,
unlike the "postscript"-terminal. It's not gnuplot.py's fault ;-)
gnuplot> help set terminal postscript
Several options may be set in the `postscript` driver.
Syntax:
set terminal postscript {<mode>} {enhanced | noenhanced}
{color | colour | monochrome}
{blacktext | colortext | colourtext}
{solid | dashed} {dashlength | dl <DL>}
{linewidth | lw <LW>}
{<duplexing>}
{rounded | butt}
{fontfile [add | delete] "<filename>"}
{palfuncparam <samples>{,<maxdeviation>}}
{"<fontname>"} {<fontsize>}
gnuplot> help set terminal png
Syntax:
set terminal png
{{no}transparent} {{no}interlace}
{tiny | small | medium | large | giant}
{font <face> {<pointsize>}}
{size <x>,<y>} {{no}crop}
{{no}enhanced}
{<color0> <color1> <color2> ...}
The only way to create a monochrome png is to define your own monochrome
palette with the png-terminal's color options. Here's an example from
the gnuplot help:
set terminal png medium size 640,480 \
xffffff x000000 x404040 \
xff0000 xffa500 x66cdaa xcdb5cd \
xadd8e6 x0000ff xdda0dd x9500d3 # defaults
which uses white for the non-transparent background, black for borders,
gray
for the axes, and red, orange, medium aquamarine, thistle 3, light
blue, blue,
plum and dark violet for eight plotting colors.
Cheers,
Ole
da...@we... wrote:
> Hi,
>
> I am running gnuplot 4.0 and it seems to be imposible to create an monochrome
> png:
> this line:
>
> g.hardcopy("somename.png", terminal='png', monochrome= 1)
>
> gives me:
>
> gnuplot> set terminal png monochrome
> ^
> line 0: invalid color spec, must be xRRGGBB
>
> Furthermore I would like to know how I can move the description line (the
> title) for a plot like this:
> g.plot(Gnuplot.Data(tmp1, title = "C^1_{t}", with="lines"))
>
> this:
> g.plot(Gnuplot.Data(tmp1, title = "C^1_{t}", with="lines", offset = (1,1))
> does not work for me.
>
> Thank you very much,
>
> Daniel
>
>
> _______________________________________________
> Gnuplot-py-users mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users
>
>
|