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

Bug Report: Excessively thin Thin?

0 views
Skip to first unread message

AES

unread,
Jun 28, 2009, 6:09:22 AM6/28/09
to
I'm making and Exporting vector graphic diagrams in M7 using lists of
graphics primitives (Line , Arrow, Circle, etc).

Lines or Arrows with no Thickness directive preceding them in the
graphics list come out nearly invisible on screen. Looking at the
Exported output with Illustrator shows that they're 0.5 pt lines.

Lines or Arrows preceded by Thick in the graphics list seem to come out
as 2 pt lines -- somewhat thicker than normal 1 pt rules.

Lines or Arrows preceded by Thin don't seem to be created at all -- they
don't appear on screen, and aren't in the Exported document (at least,
as looked at with Illustrator).

And, the first example of Graphics[{Thin, Line}] on the Thin Help page
doesn't appear to generate any Thin line either -- although the
Graphics3D example does.

I should have added, this is Mathematica 7.0.1.0
on a MacBook running OS 10.4.11.

Sjoerd C. de Vries

unread,
Jun 28, 2009, 11:27:49 PM6/28/09
to
Don't seem to have this problem on my system (WinXP, M7), neither do I
recall ever having had it. Perhaps mac related.

Cheers -- Sjoerd

ragfield

unread,
Jun 30, 2009, 6:31:24 AM6/30/09
to

Can you post a specific example of a Graphics expression which
produces no visible line on your computer? The example you mention
from the Thin documentation page (Graphics[{Thin, Line[{{0, 0}, {2,
1}}]}]) appears correctly for me in 7.0.1 on Mac OS X 10.5.7.

-Rob

AES

unread,
Jul 1, 2009, 6:36:58 AM7/1/09
to
In article <h2cphs$a6t$1...@smc.vnet.net>, ragfield <ragf...@gmail.com>
wrote:

>
> Can you post a specific example of a Graphics expression which
> produces no visible line on your computer? The example you mention
> from the Thin documentation page (Graphics[{Thin, Line[{{0, 0}, {2,
> 1}}]}]) appears correctly for me in 7.0.1 on Mac OS X 10.5.7.
>

Just typed in

Graphics[{
Line[{{0, 0.5}, {1, 0.5}}],
Thin, Line[{{0, 0}, {1, 1}}],
Thick, Line[{{1, 1}, {0, 0}}]}]

executed it, no visible Thin line.

Selected and Saved output cell as PDF, opened with Illustrator, Selected
All in Illustrator -- no Thin line there (even invisible or transparent
objects appear when you Select All in Illustrator).

Opened Help for Thin. First Example in the Help document, as opened,
shows no Thin line, but does show Thick line. Inserted "Red," directive
in both parts of this Example, re-executed it. Thick line turned red,
still no Thin line. Thin line does show in following Example, which
uses Graphics3D. (Note: Already did and reported this same observation
in original post.)

Basically vanilla MacBook with Apple Cinema external display, OS
10.4.11, Mathematica 7.0.1.0, no other current glitches with Mathematica
or anything else I've been running on this machine.

ragfield

unread,
Jul 2, 2009, 7:10:55 AM7/2/09
to
On Jul 1, 5:36 am, AES <sieg...@stanford.edu> wrote:
> In article <h2cphs$a6...@smc.vnet.net>, ragfield <ragfi...@gmail.com>

> wrote:
>
>
>
> > Can you post a specific example of a Graphics expression which
> > produces no visible line on your computer? The example you mention
> > from the Thin documentation page (Graphics[{Thin, Line[{{0, 0}, {2,
> > 1}}]}]) appears correctly for me in 7.0.1 on Mac OS X 10.5.7.
>
> Just typed in
>
> Graphics[{
> Line[{{0, 0.5}, {1, 0.5}}],
> Thin, Line[{{0, 0}, {1, 1}}],
> Thick, Line[{{1, 1}, {0, 0}}]}]
>
> executed it, no visible Thin line.
>
> Selected and Saved output cell as PDF, opened with Illustrator, Selected
> All in Illustrator -- no Thin line there (even invisible or transparent
> objects appear when you Select All in Illustrator).
>
> Opened Help for Thin. First Example in the Help document, as opened,
> shows no Thin line, but does show Thick line. Inserted "Red," directiv=
e

> in both parts of this Example, re-executed it. Thick line turned red,
> still no Thin line. Thin line does show in following Example, which
> uses Graphics3D. (Note: Already did and reported this same observat=
ion

> in original post.)
>
> Basically vanilla MacBook with Apple Cinema external display, OS
> 10.4.11, Mathematica 7.0.1.0, no other current glitches with Mathematica
> or anything else I've been running on this machine.


Interesting. This example displays correctly for me on both 10.5 and
10.4. The fact that it also happens with Save As PDF leads me to
believe the problem isn't in the rendering, but something about the
graphic itself. Either it's not being generated correctly or maybe
you have some global/stylesheet option set that is causing the line
not to appear.

Here's a few things to try to help narrow down the problem.

Show Cell Expression on the resulting graphic. It should look like
the following expression. Does it?

Cell[BoxData[
GraphicsBox[{LineBox[{{0, 0.5}, {1, 0.5}}],
{Thickness[Tiny], LineBox[{{0, 0}, {1, 1}}]},
{Thickness[Large], LineBox[{{1, 1}, {0, 0}}]}}]], "Output"]

Does the mouse cursor change when you move it over where the line
should be? Are you able to click on the invisible line to select it?

Try running Mathematica with clean preferences. Quit, move ~/Library/
Mathematica/FrontEnd/init.m to a different location, start
Mathematica.

-Rob

Tyler

unread,
Jul 2, 2009, 7:11:49 AM7/2/09
to
File this one under D'oh!

Using your code below, you'll see that the thin line is on *the same*
line as the regular one. As such, the thick line over plots it....

> Graphics[{
> Line[{{0, 0.5}, {1, 0.5}}],
> Thin, Line[{{0, 0}, {1, 1}}],
> Thick, Line[{{1, 1}, {0, 0}}]}]

Try,

Graphics[{Line[{{0, 0.5}, {1, 0.5}}], Thin, Line[{{0, 0}, {1, 1}}],
Thick}]

And you'll see the line.

t.

Bob Hanlon

unread,
Jul 2, 2009, 7:12:23 AM7/2/09
to
You drew the thick line on top of the thin line. Try

Graphics[{Line[{{0, 0.5}, {1, 0.5}}], Thin, Line[{{0, 0}, {1, 1}}],

Thick, Line[{{1, 1}, {1, 0}}]}]


Bob Hanlon

---- AES <sie...@stanford.edu> wrote:

=============


In article <h2cphs$a6t$1...@smc.vnet.net>, ragfield <ragf...@gmail.com>

wrote:

>
> Can you post a specific example of a Graphics expression which
> produces no visible line on your computer? The example you mention
> from the Thin documentation page (Graphics[{Thin, Line[{{0, 0}, {2,
> 1}}]}]) appears correctly for me in 7.0.1 on Mac OS X 10.5.7.
>

Just typed in

Graphics[{


Line[{{0, 0.5}, {1, 0.5}}],
Thin, Line[{{0, 0}, {1, 1}}],
Thick, Line[{{1, 1}, {0, 0}}]}]

executed it, no visible Thin line.

Selected and Saved output cell as PDF, opened with Illustrator, Selected
All in Illustrator -- no Thin line there (even invisible or transparent
objects appear when you Select All in Illustrator).

Opened Help for Thin. First Example in the Help document, as opened,

shows no Thin line, but does show Thick line. Inserted "Red," directive

in both parts of this Example, re-executed it. Thick line turned red,
still no Thin line. Thin line does show in following Example, which

uses Graphics3D. (Note: Already did and reported this same observation

Helen Read

unread,
Jul 2, 2009, 7:12:44 AM7/2/09
to
AES wrote:
> In article <h2cphs$a6t$1...@smc.vnet.net>, ragfield <ragf...@gmail.com>
> wrote:
>
>> Can you post a specific example of a Graphics expression which
>> produces no visible line on your computer? The example you mention
>> from the Thin documentation page (Graphics[{Thin, Line[{{0, 0}, {2,
>> 1}}]}]) appears correctly for me in 7.0.1 on Mac OS X 10.5.7.
>>
>
> Just typed in
>
> Graphics[{
> Line[{{0, 0.5}, {1, 0.5}}],
> Thin, Line[{{0, 0}, {1, 1}}],
> Thick, Line[{{1, 1}, {0, 0}}]}]
>
> executed it, no visible Thin line.

You have asked for

1. A line from {0,0.5} to {1,0.5} with default thickness
2. A Thin line from {0,0} to {1,1}
and 3. a Thick line from {1,1} to {0,0}

Lines 2 and 3 are the _same line_, and cannot be simultaneously Thin and
Thick. I get the expected output, namely a default (Thin) line from
{0,0.5} to {1,0.5} and a Thick line from {1,1} to {0,0}.

Perhaps you meant something like this:

Graphics[{{Thin, Line[{{0, 0.5}, {1, 0.5}}]},
{Thick, Line[{{1, 1}, {0, 0}}]}}]

which does produce a thin line from {0,0.5} to {1,0.5} and a thick line
from {1,1} to {0,0}.

--
Helen Read
University of Vermont

ADL

unread,
Jul 2, 2009, 7:13:06 AM7/2/09
to
The thin line does not appear because it has the same position of the
thick one.

Graphics[{Line[{{0, 0.5}, {1, 0.5}}], Thin, Line[{{0, 0.6}, {1,
0.6}}], Thick, Line[{{1, 0}, {0, 1}}]}]

works as expected in 7.0 for Microsoft Windows (32-bit) (February 18,
2009).

ADL

On Jul 1, 12:36 pm, AES <sieg...@stanford.edu> wrote:
> In article <h2cphs$a6...@smc.vnet.net>, ragfield <ragfi...@gmail.com>
> wrote:
>

...


> Just typed in
>
> Graphics[{
> Line[{{0, 0.5}, {1, 0.5}}],
> Thin, Line[{{0, 0}, {1, 1}}],
> Thick, Line[{{1, 1}, {0, 0}}]}]
>
> executed it, no visible Thin line.
>

....

AES

unread,
Jul 3, 2009, 5:35:38 AM7/3/09
to
In article <h2i4ll$91l$1...@smc.vnet.net>, Tyler <hayes...@gmail.com>
wrote:

> File this one under D'oh!
>
> Using your code below, you'll see that the thin line is on *the same*
> line as the regular one. As such, the thick line over plots it....

Got this same reply from numerous (and remarkably forgiving) regulars.

Indeed -- not just "D'oh!", but "Dumb, dumb, DUMB!!" I'll crawl back
into my cage, self-wounded, and be silent for a while.

[But in self defense, with the Thin Help file opened full height on a
Cinema 21" display, the Thin line in the first demo example is really
effectively invisible, and remains so even when you add a "Red"
directive in front of it and re-execute it, with "Red" added to the
Thick demo also, to confirm that this works OK.]

0 new messages