On Wed, 24 Oct 2007, lrj wrote:
> The png files obtained by h5topng always have no color bar and scale
> bar on x and y axes, so it can not show all the infomation of a figure.
> Are there any way to display color bar and scale bar on x and y axes?
No. h5topng is for batch visualization, and is not a full-featured
plotting program; it can't generate axes like you are asking for.
When I need scale bars and/or color bars in plots, I usually do one of two
things:
a) I use a full-featured plotting program instead of h5topng
b) I import the h5topng image into an illustration program (like the free
Inkscape, or Adobe Illustrator, etcetera), and add the requisite axes,
labels, etcetera, there.
For option (b), there is a quick trick to make an small image for use as a
color bar:
echo "0 1" | h5fromtxt bar.h5
h5topng -v -X 200 -Y 30 -c bluered bar.h5
The first line makes a bar.h5 file with two numbers 0 and 1, and the
second line makes a 30x400 image of the bluered colorbar.
Regards,
Steven G. Johnson
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss