Re: [MPB-discuss] Data analysis question

2008-05-27 Thread matt



Thanks for posting this very useful and informative page.

Do you have any ideas on how we could get countour plots instead of 
smooth ones using h5utils?  Something like this:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/graphics_c11.gif

I think I could make a colormap with duplicate entries, but the black 
lines between entries would be missing.

Best,
Matt



On Thu, 22 May 2008, Steven G. Johnson wrote:

 On May 22, 2008, at 5:13 PM, Steven G. Johnson wrote:
 On May 22, 2008, at 4:30 PM, Mindy Lee wrote:
 Just one more question. If I use multiple color scheme, how do I
 print out the colorbar to indicate what color corresponding to what
 intensity scale?

 I posted one trick to get a colorbar at:

 http://article.gmane.org/gmane.comp.science.electromagnetism.meep.general/1776

 I've also posted a help page listing all of the color tables, with
 colorbar images, on the wiki:

 http://ab-initio.mit.edu/wiki/index.php/Color_tables_in_h5topng

 Steven

 ___
 mpb-discuss mailing list
 mpb-discuss@ab-initio.mit.edu
 http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss


___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss


Re: [MPB-discuss] Data analysis question

2008-05-22 Thread Mindy Lee
Oops, Thanks.

I have another question. When I choose colormap -c bluered -Z I can get the
color in red only. Is there any possibility to make it all blue?

Thanks for your time.

On Thu, May 22, 2008 at 3:24 PM, Steven G. Johnson [EMAIL PROTECTED]
wrote:


 On May 21, 2008, at 2:37 PM, Mindy Lee wrote:
  I tried to use
  h5topng -o emag.rpwr.k01.b26.te.png -d data-new epsilon.h5
  emag.rpwr.k01.b26.te.h5
 
  It gives me the emag distribution but without overlay of the epsilon
  file.

 You forgot the -C before epsilon.h5

 ___
 mpb-discuss mailing list
 mpb-discuss@ab-initio.mit.edu
 http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss




-- 
The devil has put a penalty on all things we enjoy in life. Either we suffer
in health or we suffer in soul or we get fat. -- Albert Einstein
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

Re: [MPB-discuss] Data analysis question

2008-05-22 Thread Mindy Lee
Thank you!!

On Thu, May 22, 2008 at 4:11 PM, Steven G. Johnson [EMAIL PROTECTED]
wrote:


 On May 22, 2008, at 4:03 PM, Mindy Lee wrote:
  I have another question. When I choose colormap -c bluered -Z I can
  get the color in red only. Is there any possibility to make it all
  blue?

 Yes, you can use the -r option to reverse the colormap order.

 However, if you have data that goes from 0 to some positive value,
 then -Z bluered (with or without reversal) is probably not the best
 color scheme; it was designed for positive+negative data, whereas for
 single-signed data it only uses one color and hence only a small part
 of the dynamic range available from color.  For all-nonnegative data
 like an energy density, I usually prefer the hot color scheme, which
 goes from black to red to yellow to white (like a heated black body).

 ___
 mpb-discuss mailing list
 mpb-discuss@ab-initio.mit.edu
 http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss




-- 
The devil has put a penalty on all things we enjoy in life. Either we suffer
in health or we suffer in soul or we get fat. -- Albert Einstein
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

Re: [MPB-discuss] Data analysis question

2008-05-22 Thread Mindy Lee
Just one more question. If I use multiple color scheme, how do I print out
the colorbar to indicate what color corresponding to what intensity scale?

Thank you!

On Thu, May 22, 2008 at 4:11 PM, Steven G. Johnson [EMAIL PROTECTED]
wrote:


 On May 22, 2008, at 4:03 PM, Mindy Lee wrote:
  I have another question. When I choose colormap -c bluered -Z I can
  get the color in red only. Is there any possibility to make it all
  blue?

 Yes, you can use the -r option to reverse the colormap order.

 However, if you have data that goes from 0 to some positive value,
 then -Z bluered (with or without reversal) is probably not the best
 color scheme; it was designed for positive+negative data, whereas for
 single-signed data it only uses one color and hence only a small part
 of the dynamic range available from color.  For all-nonnegative data
 like an energy density, I usually prefer the hot color scheme, which
 goes from black to red to yellow to white (like a heated black body).

 ___
 mpb-discuss mailing list
 mpb-discuss@ab-initio.mit.edu
 http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss




-- 
The devil has put a penalty on all things we enjoy in life. Either we suffer
in health or we suffer in soul or we get fat. -- Albert Einstein
___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss

Re: [MPB-discuss] Data analysis question

2008-05-22 Thread Steven G. Johnson
On May 22, 2008, at 4:30 PM, Mindy Lee wrote:
 Just one more question. If I use multiple color scheme, how do I  
 print out the colorbar to indicate what color corresponding to what  
 intensity scale?

I posted one trick to get a colorbar at:

http://article.gmane.org/gmane.comp.science.electromagnetism.meep.general/1776

___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss


Re: [MPB-discuss] Data analysis question

2008-05-22 Thread Steven G. Johnson
On May 22, 2008, at 5:13 PM, Steven G. Johnson wrote:
 On May 22, 2008, at 4:30 PM, Mindy Lee wrote:
 Just one more question. If I use multiple color scheme, how do I
 print out the colorbar to indicate what color corresponding to what
 intensity scale?

 I posted one trick to get a colorbar at:

 http://article.gmane.org/gmane.comp.science.electromagnetism.meep.general/1776

I've also posted a help page listing all of the color tables, with  
colorbar images, on the wiki:

http://ab-initio.mit.edu/wiki/index.php/Color_tables_in_h5topng

Steven

___
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss