Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1992
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1992

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

Search the Archive

Plotting problems

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Plotting problems
  • From: mcwilljg at euler.sfasu.edu
  • Date: Tue, 17 Nov 92 17:06:40 CST

I have written an Mma program whose last 3 lines are:

ListPlot[nodePairs,PlotJoined->True,DisplayFunction->Identity]
Plot[S[x],{x,node[[1]],node[[n+1]]},DisplayFunction->Identity]
Show[%,%%,DisplayFunction :> $DisplayFunction]

When the program is executed the Show function will sometimes(rarely)  
properly overlay the two previous plots but more often, one of the  
following error messages are displayed with no graph:

Show::gtype: String is not a type of graphics.
Show::gtype: Show is not a type of graphics.

However when the same 3 lines are executed in the notebook after the  
program has bees run, the Show function produces the proper plot.

Does anyone know what is wrong here?  Why are the error messages  
inconsistent?





  • Prev by Date: Re: the rotterdam programming competition
  • Next by Date: 3D rendering question
  • Previous by thread: [no subject]
  • Next by thread: Re: Plotting problems