Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4812
| From | Alexey Popkov <lehin.p@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | PlotMarkers Documentation inconsistency |
| Date | 2011-09-07 09:40 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j47e5i$kvs$1@smc.vnet.net> (permalink) |
Hello,
It seems that I have found one very important statement on the
Documentation page for PlotMarkers which is inconsistent with real
behavior of this option.
On the page
http://reference.wolfram.com/mathematica/ref/PlotMarkers.html
under "More information" we read: "With PlotMarkers->{g,s}, the object
g is scaled so that one unit of its coordinates corresponds to a
fraction s of the width of the whole graphic." Let us see how in
really this option works. There are at least two inconsistent cases:
1a) When using characters as PlotMarkers:
In[20]:= Cases[
ListPlot[{1, 1}, PlotMarkers -> {"\[HappySmiley]", .1}],
x_Inset :> InputForm[x], Infinity]
Out[20]= {Inset[Style["\[HappySmiley]", FontSize -> 0.1], 3],
Inset[Style["\[HappySmiley]", FontSize -> 0.1], 4]}
One can see that the size of the character "\[HappySmiley]" is
completely independent from the width of the whole graphics. Moreover,
it is doubtful that this can be properly fixed by replacing FontSize -
> 0.1 by FontSize -> Scaled[0.1] since (as fas as I know) font scaling
is not completely smooth (I can be wrong here). What is the simplest
workaround for this (I think that we probably should scale entire
Inset instead of using the FontSize option)? This bug is very
annoying.
2b) When using Graphics as PlotMarkers:
In[24]:= Cases[
ListPlot[{1, 1}, PlotMarkers -> {Graphics@Circle[{0, 0}, 1], 0.1}],
x_Inset :> InputForm[x], Infinity]
Out[24]= {Inset[Graphics[Circle[{0, 0}, 1]], 3, Automatic,
Scaled[{0.1, 0.1}]],
Inset[Graphics[Circle[{0, 0}, 1]], 4, Automatic, Scaled[{0.1, 0.1}]]}
One can see that the size of the Graphics is scaled not only with the
width of the plot but also with its height. I think that this behavior
is right and so the Documentation needs to be corrected.
P.S. I use Mathematica 7.0.1
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
PlotMarkers Documentation inconsistency Alexey Popkov <lehin.p@gmail.com> - 2011-09-07 09:40 +0000
csiph-web