home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math.symbolic
- Path: sparky!uunet!wupost!eclnews!wuee1!fred
- From: fred@wuee1.wustl.edu (Fred U. Rosenberger)
- Subject: Naive questions on plotting with Mathematica
- Message-ID: <1992Jul28.131433.25688@wuecl.wustl.edu>
- Sender: usenet@wuecl.wustl.edu (Usenet Administrator)
- Nntp-Posting-Host: wuee1
- Organization: Washington University, St. Louis Mo.
- Distribution: usa
- Date: Tue, 28 Jul 1992 13:14:33 GMT
- Lines: 79
-
- Sorry to ask these naive questions on plotting but I could not find the
- answers myself.
-
- Is there a good reference to plotting data with Mathematica?
- Something better than the Wolfram book (and the Technical Report:
- "Guide to Standard Mathematica Packages"?)
-
- We are running Mathematica 2.1 on Sun Sparcstations
-
-
- (* --------------------------------------------------------------- *)
-
-
- (* How does one use ShowLegend? I could get legends with Plot
- but not with ShowLegend *)
-
- <<Graphics`Legend`
-
- (* this does not show the legend, it generates a plot with no legend *)
- ShowLegend[Plot[{Sin[x], Cos[x]},{x,-2 Pi, 2Pi}], PlotLegend -> {"S","C"}]
-
- *( This draws the plot and the legend *)
- Plot[{Sin[x], Cos[x]},{x,-2 Pi, 2 Pi}, PlotLegend -> {"S","C"}]
-
-
- (* ---------------------------------------------------------------- *)
- (* TEST CASE FOR LABELING ALL FOUR FRAME EDGES, PUTS TICKS BUT DOES NOT
- LABEL TOP OR RIGHT EDGE OF FRAME.
- As I read description on page 422 of Wolfram's second edition (1991),
- I should be able to set labels for ticks on all four edges of frame.
- I want to do this to get two different scales.
- But, my attempts to label tick marks on the top or right side of
- the frame fail. Ticks are placed as specified but
- no labels. I can set labels on the bottom and left side of
- the frame as the example shows.
- *)
-
- Plot[Np, {Np, 1, 32},
- FrameLabel -> {"Number of Processors" ,"Speedup",
- "","Time in hours"},
- Frame -> True,
- FrameTicks -> {{1,2,4,{8,"testbot"},16,32,64},
- {1,2,4,8,16,{32,"testleft"},64},
- { {16, "testtop"}, 32},
- { {1,"testright"}, 4, 8,16, 32}}
- ]
-
-
- (* -------------------------------------------------------------- *)
- (* How do I change linewidth on plotting symbols? *)
- (* I'd like to make the the linewidth used for triang and star *)
- (* in the following example narrower, its too wide for my taste *)
-
- <<Graphics`MultipleListPlot`
- triang = RegularPolygon[3, 0.013, {0, 0}, 0, 2]
- star = RegularPolygon[5, 0.013, {0, 0}, 0, 2]
- $DotShapes = { MakeSymbol[triang], MakeSymbol[star]}
- p1 = Table[{y, y^2}, {y, 0, 6}]
- p2 = Table[{x, x^1.5}, {x, 0, 6}]
- MultipleListPlot[p1, p2]
- Display["plot.ps",%]
-
- (* -------------------------------------------------------------- *)
- (* Is there something like MultipleListLogPlot ?
- I found MultipleListPlot and ListLogPlot but I want multiple
- lists on one plot with a log scale *)
-
- In[1]:= <<Graphics`Graphics`
-
- In[2]:= <<Graphics`MultipleListPlot`
-
- In[3]:= ?LogMultipleListPlot
-
- Information::notfound: Symbol LogMultipleListPlot not found.
-
- In[3]:= ?MultipleLogListPlot
-
- Information::notfound: Symbol MultipleLogListPlot not found.
-
-