MathGroup Archive 2004

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

Search the Archive

Re: FilledPlot Sideways?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51355] Re: [mg51339] FilledPlot Sideways?
  • From: "David Park" <djmp at earthlink.net>
  • Date: Fri, 15 Oct 2004 02:45:57 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Tom,

One method for doing this is to use the DrawGraphics package from my web
site below. The Draw statements generate the primitive graphics (Line,
Polygon etc.) and then DrawingTransform can be used to transform these
objects. In this case we just switch the x and y coordinates.

Needs["DrawGraphics`DrawingMaster`"]

Draw2D[
    {FilledDraw[x^2, {x, -2, 2}] /. DrawingTransform[#2 &, #1 &]},
    AspectRatio -> Automatic,
    Axes -> True];

If more general transformations are used, it may be necessary to use
FineGrainPolygons and FineGrainLines so the straight edges will bend
properly with the transformation.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: Tom Aldenberg [mailto:Tom.Aldenberg at rivm.nl]
To: mathgroup at smc.vnet.net

Hi,

How can I make FilledPlots sideways?

So I want the equivalent of FilledPlot [x^2, {x,-2,2}], but with the axes
transposed.
The curve is something like ParametricPlot[{x^2, x}, {x,-2,2}]. How to do
the shading?

Tom Aldenberg






  • Prev by Date: Re: Stats Pack and LocationReport
  • Next by Date: Re: Solving an equation
  • Previous by thread: Re: FilledPlot Sideways?
  • Next by thread: Save a graphic