Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3461
| From | Alexey Popkov <lehin.p@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Font and Style problems using Image to create bitmaps of Plots/Charts etc |
| Date | 2011-07-03 08:11 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iup873$kr5$1@smc.vnet.net> (permalink) |
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.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Font and Style problems using Image to create bitmaps of Plots/Charts etc Alexey Popkov <lehin.p@gmail.com> - 2011-07-03 08:11 +0000
csiph-web