Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Re: Dashed GridLines appear impossible

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7417] Re: [mg7395] Dashed GridLines appear impossible
  • From: Fabian Haas <b5hafa at rz.uni-jena.de>
  • Date: Sat, 31 May 1997 15:07:27 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Luci Ellis <elisha at dot.net.au> wrote:

>I have been experimenting with plotting options lately. At my work, we have
>a particular house style of graph, which we create in DeltaGraph (and
>something close to it in Excel). I would like to replicate this style for
>the graphs I create in Mathematica, as this would save exporting large
>datafiles and massaging them into a form that Excel or DeltaGraph would
>accept.
>
>Unfortunately, it appears that the graph option GridLines doesn't allow the
>line styles Dashing or AbsoluteDashing to be used with it. GrayLevel, Hue,
>Thickness are all okay, but not Dashing. Why is this?
>
>Can I achieve dashed gridlines without coding them in raw graphic primitives?
>I would like to write a function that applies all the departmental styles
>in one hit, so that I can use it in a more general way, without having to
>define exactly where the gridlines must be placed.
>
>Any ideas, or explanation of why this functionality was omitted, gratefully
>received.
>
>Thanks in anticipation,
>
>Luci
>
>--------------
>Luci Ellis:  elisha at dot.net.au
>http://www.dot.net.au/~elisha

Hi,

I am not sure if my suggestions really help, but I have the feeling that GridLines options is somewhat clumsy concerning parentheses, so I would encourage you to nest the options further, uses more parentheses nested.

Making GridLine with the Line primitive should be a problem. Your function must check for minimal and maximal values in your data set and divide that range be a arbitrary number of gridlines (v = Transpose[ data ], Min[v[[1]]], Max[v[[1]]])
The returnobject should be a list of Line primitives with yoour directives. Put the whole thing into a Graphics object.





-------------------------------------------------------------------------
Dipl.Biol. Fabian Haas, MPhil
Institut für Spezielle Zoologie und Evolutionsbiologie
Erbertstr. 1
D-07743 Jena
Deutschland / Germany
TEL  ++ 49 361 630 424
FAX  ++ 49 361 630 392
                               :-)  (-:
-------------------------------------------------------------------------




  • Prev by Date: Re: "Save Graphic As BMP" problems...
  • Next by Date: Re: Version 3.0 Speed
  • Previous by thread: Dashed GridLines appear impossible
  • Next by thread: Accessing help-pages (mm3.0) is so slow (PC-Xware --> Workstation)