Thanks for the prompt reply, Christian. Joel
----- Original Message ----- From: Christian Feuersaenger <cfeuersaen...@googlemail.com> To: Joel <jtzzaa11-pgf...@yahoo.com>; 'PGFplots mailing list' <pgfplots-features@lists.sourceforge.net> Cc: Sent: Tuesday, October 25, 2011 2:33 AM Subject: Re: colorbar number format Hi Joel, I see, thanks for the clarification and the example. What you need is to a) explicitly disable the tick scaling (which is unrelated to the number printing) and b) to fix something in the exponential style: using colorbar style={xticklabel pos=upper,/pgf/number format/sci,/pgf/number format/sci e,scaled ticks=false} does what you want (from what I understand). The 'sci' key ACTIVATES the scientific display whereas 'sci e' CONFIGURES how an activated scientific format is displayed. The 'scaled ticks=false' key disables the extra '*10^6' node and the scaling. Best regards Christian Am 24.10.2011 07:22, schrieb Joel: > Hello Christian, > > Thanks for the prompt reply. I probably should have mentioned I've tried the > /pgf/number format in colorbar style. Unfortunately, I can't get the needed > formatting. > > So basically, I want the numbers formatted as 1e+6, 2e+6, etc. on the > colorbar. > Here's a minimal example: > > \begin{axis}[% > colorbar=true, > colorbar horizontal,% > colorbar style={xticklabel pos=upper,/pgf/number format/sci e} > ] > \addplot3[surf,shader=interp,point meta=\thisrowno{2}] table{f.dat};% > \end{axis} > > When I'm getting is the numbers as 1, 2, etc. and then *10^6 on the top right > corner of the colorbar. > > Thanks, > Joel. > ________________________________ > From: "cfeuersaen...@googlemail.com"<cfeuersaen...@googlemail.com> > To: Joel<jtzzaa11-pgf...@yahoo.com> > Sent: Friday, October 21, 2011 7:53 PM > Subject: Re: colorbar number format > > > Hi Joel, > > although I cannot run an experiment right now, I would expect that 'colorbar > style={/pgf/number format/sci}' will do the job. You may also want to append > /pgf/number format/precision=<digits> and/or /pgf/number format/sci zerofill > . > > Best regards > > Christian ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features