Share

gnuplot development

Tracker: Feature Requests

5 More plotting symbols in postscript - ID: 1958517
Last Update: Comment added ( adversus )

Hi,

I'd like to suggest some further plotting symbols for the postscript
terminal: filled figures (filled with a color you can choose) with a black
border (as opposed to the standard postscript filled figures).

I've been using those symbols for a while and think they look rather nice.
My trial implementation is included in the attached file, the change in
each file can be found under the line "Custom added".

kind regards,

Adversus


Sander Valcke ( adversus ) - 2008-05-06 07:59

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 4 )




Date: 2008-07-24 21:47
Sender: adversus


awwww it removes the filled circles ; ) nice to see this is being followed
up.


Date: 2008-07-24 19:55
Sender: sfeamProject Admin


Here is a prologue file that is usable with existing gnuplot builds (no
need to recompile or re-install). It replaces the default point types
16-24 with your fill+black_border shapes and also adds a set of 5-pointed
star variants.

To use:
Either replace the file prologue.ps that came with your gnuplot, or
copy the default PostScript prologue and header files to a directory of
your choice, replace prologue.ps with this new version, and set the
environmental variable GNUPLOT_PS_DIR to point to the directory of locally
customized files.

I will also start a section on the web site for other contributed
customizations.
File Added: prologue.ps


Date: 2008-05-12 17:12
Sender: adversus


I'll have to check how to make a patch then : )

I actually never thought of replacing an "old" symbol, it never occured to
me that the prologue file was there to modify to my liking. I'll try to
make a patch containing a few more symbols than the ones I already put in,
one can never have enough symbols : ) If you prefer it I can name them
UserDefined1 and so on. I might also make the prologue file and contribute
it.


Date: 2008-05-09 21:19
Sender: sfeamProject Admin


Thanks.

For future reference, please note that it is much easier to deal with
patches than with whole files. Inevitably the current version of the source
code doesn't match the version you were working with, and replacing the
whole file would lose all the work that has been done in between. Chances
are good, however, that a smallpatch against an old version will still
apply against the current version.

If I could make a suggestion:
As you found, the actual symbol definitions are now in a separate prologue
file that is locally customizable. The whole idea here is to let people
make changes like this without having to recompile or reinstall gnuplot
itself. To take full advantage of this, consider modifying your patch so
that the added symbols have names like "UserDefined1". That way it is more
obvious that individual users are free to redefine these symbols in the
prologue file. For that matter, did you consider just replacing one of the
existing rather boring symbol series with your new one? Your modified
prologue file could go right onto the "contributed" section of the web
site, and people using the existing released version of gnuplot code
benefit from it without having to rebuild or update their installation.


Log in to comment.




Attached Files ( 2 )

Filename Description Download
prologue.ps Plug-in prolog with new point types 16-24 Download
postscript.tar.gz modified post.trm and prologue.ps Download

Changes ( 2 )

Field Old Value Date By
File Added 285848: prologue.ps 2008-07-24 19:55 sfeam
File Added 276942: postscript.tar.gz 2008-05-06 07:59 adversus