Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Font and Style problems using Image to create bitmaps of Plots/Charts etc

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119975] Re: Font and Style problems using Image to create bitmaps of Plots/Charts etc
  • From: Alexey Popkov <lehin.p at gmail.com>
  • Date: Sun, 3 Jul 2011 04:10:18 -0400 (EDT)

Hi Roger,

I think that the reason is that export functions (in this case Image[]) completely ignore any Notebook-specific settings and take into account only global settings. Probably changing global settings may help.

HTH,

Alexey


> In a default setting...
> 
> plot = Plot[Sin[x], {x, -10, 10}, Frame -> True, PlotLabel -> "Sine
> Wave"]
> 
> and
> 
> Image[plot]
> 
> Will look the same.
> 
> However, if Style options have been set either through OptionInspector
> FormattingOptions/GraphicsBoxOptions/GraphicsBoxOptions/DefaultStyle
> or the "Graphics" style has been altered in the notebook's StyleSheet
> (e.g. a change of FontFamily, FontWeight, FontFace etc).  Then the two
> will be different.  The Graphic entity plot will have the styles
> applied and the raster produced by Image will have them all stripped
> off.
> 
> Now something like this does work...
> 
> plot2 = Plot[Sin[x],{x,-10,10},Frame->True,PlotLabel->"Sine
> Wave",FrameTicksStyle->Directive[FontSize->15,FontColor-
> >Blue,FontSlant->Italic,FontWeight->Bold]]
> 
> Image[plot2]
> 
> Both are pretty much identical so Image can produce the correct styles
> just clearly does not inherit them from either GraphicsBoxOptions (nor
> RasterBoxOptions) or from the prevailing "Graphics" style of the
> stylesheet.
> 
> So where do they come from and can they be changed?
> 
> Many thanks for reading.



  • Prev by Date: A GUI Builder for Mathematica, or best existing solution..
  • Next by Date: Re: Bug in Sum?
  • Previous by thread: Font and Style problems using Image to create bitmaps of Plots/Charts etc
  • Next by thread: Re: Font and Style problems using Image to create bitmaps of Plots/Charts etc