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


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

Re: options in Plot

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: options in Plot
Date 2012-12-20 08:20 +0000
Message-ID <kauho6$irf$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web