MathGroup Archive 2008

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

Search the Archive

Clever Tricky Solutions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94069] Clever Tricky Solutions
  • From: Donald DuBois <donabc at comcast.net>
  • Date: Thu, 4 Dec 2008 07:13:56 -0500 (EST)

Here is a simple example of why more people don't use Mathematica.

px1 = Plot[1/2 Sin[3.14 x ], {x, 1, 2 }, AxesOrigin -> {0, 0}]

px2 = Plot[Sin[3.14 x ], {x, 0, 1 }, AxesOrigin -> {0, 0}]

Show[px1, px2] does NOT show both graphs.

There are multiple steps that the user might go through
that may help.  A list below in the order that I think most people who are not Mathematica aficionados would use: 

(1) Go to the Show Help page  which is no help at all.

(2) Do Options[Show]  which produces  {}.

(3) Digging a little further, you have to realize the px1 and px2 are Graphics objects and that Show inherits these options so do a Options[Graphics].  After playing around with the different options starting with the word "Axes" [since the problem seems to be the axes in the positive half of the graph are missing] you hit upon PlotRange->All does the trick.

I'm sure there are reasons why Show does not work in an intuitive, easy to use fashion.  But the end result is, since most people don't have the time or patience to go through this mind numbing exercise to get a simple job done, they will use Mathematica only when all other packages fail to deliver what they need.  Not a good way of expanding the user base, in my opinion.  Clever, tricky solutions are no solutions at all.


  • Prev by Date: Re: Copying text out of mathematica
  • Next by Date: Syntax color output upon saving to .pdf, etc.
  • Previous by thread: Re: Extracting free parameters from a Solve result
  • Next by thread: Re: Clever Tricky Solutions