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

plotting with dotted lines, not dashed

822 views
Skip to first unread message

Robert Rosenbaum

unread,
Oct 28, 2009, 5:09:34 AM10/28/09
to
I need to plot a function with a dotted line for a figure to be
published. As you may know PlotStyle->Dotted simply makes a dashed
line with small dashes. Since I already have a dashed line in the
figure, I would prefer an actual dotted line for this function.

I tried ListPlot with PlotMarkers set to discs, but these get spaced
according to the grid in the list I send to ListPlot. In order to
space them equally like Dashed does, I'd have to make a non-uniform
grid that depends on the derivative of my function (which I don't have
a closed form for).

Surely there is a reasonable way to plot with a dotted line, right?
Any ideas?


Best,
Robert


dh

unread,
Oct 31, 2009, 3:40:24 AM10/31/09
to

Hi Robert,

in version 7.0.1:

from the manual:

Dotted: Dotted is equivalent to Dashing[{0, Small}]:

Dashing: If a segment has a length Subscript[r, i] specified as 0, it is

drawn as a dot whose diameter is the thickness of the line.

hope this helps, Daniel

AES

unread,
Nov 1, 2009, 4:11:47 AM11/1/09
to
In article <hcgpl8$egs$1...@smc.vnet.net>, dh <d...@metrohm.com> wrote:

> Hi Robert,
>
> in version 7.0.1:
>
> from the manual:
>
> Dotted: Dotted is equivalent to Dashing[{0, Small}]:
>
> Dashing: If a segment has a length Subscript[r, i] specified as 0, it is
>
> drawn as a dot whose diameter is the thickness of the line.


The Input line for the first example in the Help message for "Dotted" in
Mathematica 7 is

Graphics[{Dotted, Line[{{0, 0}, {2, 1}}]}]

I copied the Output graphic produced by that input in the Help message
using the Mathematica "Copy as PDF" menu command; pasted it into an
Illustrator document that was open in Illustrator; and magnified the
view of that document.

The "dots" are clearly not dots but dashes or rectangles that are
something like 4 or 5 times longer than they are wide.

0 new messages