Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12881 > unrolled thread

Re: options in Plot

Started byBill Rowe <readnews@sbcglobal.net>
First post2012-12-20 08:20 +0000
Last post2012-12-20 08:20 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: options in Plot Bill Rowe <readnews@sbcglobal.net> - 2012-12-20 08:20 +0000

#12881 — Re: options in Plot

FromBill Rowe <readnews@sbcglobal.net>
Date2012-12-20 08:20 +0000
SubjectRe: options in Plot
Message-ID<kauho6$irf$1@smc.vnet.net>
On 12/19/12 at 4:55 AM, nigel.king@cambiumnetworks.com (Nigel King)
wrote:

>Hi MathGroup, Most Graphic functions allow applying a collection of
>options as in opts = {Frame -> True, GridLines -> {{1}, {1}}}

>One can then use the opts in the following plots ListPlot[{{1, 1}},
>opts] Plot[x, {x, 0, 1}, opts] The ListPlot works as expected, the
>Plot does not. It results with Plot[x, {x, 0, 1}, opts]

>I believe that this is a change from M8 to M9.

I cannot reproduce your results. I get the same plot in both:

In[3]:= $Version

Out[3]= 8.0 for Mac OS X x86 (64-bit) (October 5, 2011)

and

In[3]:= $Version

Out[3]= 9.0 for Mac OS X x86 (64-bit) (November 20, 2012)

I notice with the default coloring and default PointSize it
might be easy to miss the point being plotted since the
GridLines specification has the grid lines crossing where the
point is plotted.

Try

opts = {Frame -> True, PlotStyle -> {Red, PointSize[.02]},
    GridLines -> {{1}, {1}}};
ListPlot[{{1, 1}}, opts]

just to make it more apparent the point is actually being plotted.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web