Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ListContourPlot: AxesLabels? (Q)

795 views
Skip to first unread message

m. r. schaferkotter

unread,
Mar 21, 1996, 3:00:00 AM3/21/96
to
greetings:

when i specify Ticks->None in ListContourPlot, Mma seems to ignore

my request, as well as my request for AxesLabels.

can someone direct me to some help on this?

sincerely,
m. r.


Ian Collier

unread,
Mar 22, 1996, 3:00:00 AM3/22/96
to
In article <innclip4iqpij$p...@dragonfly.wolfram.com>, "m. r.
schaferkotter" <scha...@communique.net> wrote:

> [ Clipped from :comp.soft-sys.math.mathematica ]

If you look at the Options for ListContourPlot you will see
that Axes is set to False but that Frame is set to True.

To do what you want use the FrameTicks and FrameLabel
options. Here is an example:

In[1]:=
data = Table[ Sin[x Cos[y]],{x,-3,3,.5},{y,-3,3,.5}];

In[2]:=
ListContourPlot[ data ]
Out[2]=
-ContourGraphics-

In[3]:=
Options[ ListContourPlot ]
Out[3]=
{AspectRatio -> 1, Axes -> False, AxesLabel -> None,
AxesOrigin -> Automatic, AxesStyle -> Automatic,
Background -> Automatic, ColorFunction -> Automatic,
ColorOutput -> Automatic, ContourLines -> True,
Contours -> 10, ContourShading -> True,
ContourSmoothing -> True, ContourStyle -> Automatic,
DefaultColor -> Automatic, Epilog -> {}, Frame -> True,
FrameLabel -> None, FrameStyle -> Automatic,
FrameTicks -> Automatic, MeshRange -> Automatic,
PlotLabel -> None, PlotRange -> Automatic,
PlotRegion -> Automatic, Prolog -> {},
RotateLabel -> True, Ticks -> Automatic,
DefaultFont :> $DefaultFont,
DisplayFunction :> $DisplayFunction}

In[6]:=
ListContourPlot[ data, FrameTicks -> None,
FrameLabel -> {x Label, y Label}]
Out[6]=
-ContourGraphics-

I hope this helps.

--Ian

-----------------------------------------------------------
Ian Collier
Wolfram Research, Inc.
-----------------------------------------------------------
tel:(217) 398-0700 fax:(217) 398-0747 ia...@wolfram.com
Wolfram Research Home Page: http://www.wolfram.com/
-----------------------------------------------------------


Harald Berndt

unread,
Mar 22, 1996, 3:00:00 AM3/22/96
to
m. r. schaferkotter wrote:
>
> greetings:
>
> when i specify Ticks->None in ListContourPlot, Mma seems to ignore
>
> my request, as well as my request for AxesLabels.
>
> can someone direct me to some help on this?
>
> sincerely,
> m. r.


ListContourPlot[] and similar functions don't use axes and ticks in
their default settings. Instead, they have frames with FrameLabel
FrameTicks etc. options. It is explained in the Mma book, or you can
look at Options[ListContourPlot] or similar. (In the Mac frontend, you
can use the Function Browser, a very nifty feature!)

--
_______________________________________________________________
Harald Berndt University of California
Research Specialist Forest Products Laboratory
Phone: 510-215-4224 FAX:510-215-4299


0 new messages