MathGroup Archive 2005

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

Search the Archive

Axes in ShowGraph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54259] Axes in ShowGraph
  • From: Steve Gray <stevebg at adelphia.net>
  • Date: Mon, 14 Feb 2005 21:50:55 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

I have a graph with 40 vertices, displayed with this function:

ShowGraph [ comgraph,
    		  ImageSize -> 600,
    		  Background -> RGBColor[.9, 1., .9],
    		  VertexColor -> RGBColor[.5, .9, .9],
    		  VertexStyle -> Disk[0.03],
    		  VertexNumber -> True,
    		  VertexNumberPosition -> Center,
    		  TextStyle -> {FontSize -> 13, FontWeight -> Bold},
    		  Axes -> True,
    		  PlotRange -> All
    	      ];

Everything looks correct except the values displayed on the axes bear no relation to the
values of the vertices given by Vertices[comgraph]. (PlotRange->Automatic does the same thing.)
The vertices have the values shown below, while the displayed axes run from about 0 to 0.64 on
X and .53 to 1.0 on Y. I need the actual vertex coordinates displayed as they are given here:

In[50]:=
Vertices[comgraph]

Out[50]=
{{4.02,11.02},{3.71,5.73},{6.86,13.27},{-2.38,8.83},{1.69,11.97},{1.63,
    14.08},{7.4,12.05},{7.54,11.46},{-3.85,13.21},{5.64,6.52},{2.66,
    7.35},{-0.42,13.44},{-0.79,8.44},{-1.83,12.39},{3.831,7.7952},{3.7865,
    7.0362},{4.2068,6.9192},{4.404,7.3913},{6.1905,11.6673},{6.4848,
    12.372},{5.6225,12.6754},{4.1706,11.9777},{2.7813,11.3101},{1.0725,
    10.489},{0.4406,10.1853},{-0.7015,9.6366},{-1.0597,9.4644},{-1.1438,
    9.7837},{-0.6631,10.1546},{-0.1153,10.5772},{0.707,11.2116},{1.2879,
    11.6598},{1.6789,12.3605},{-0.0049,12.6192},{-0.4754,12.6915},{-1.6347,
    11.6483},{-0.6062,10.9233},{1.6612,9.3248},{0.3718,11.8744},{-0.5204,
    12.0833}}

	Users of the Graph functions are probably in the minority, but can anyone explain this?

Steve Gray


  • Prev by Date: Re: UpValues for Blank[foo]
  • Next by Date: Re: Using Select with arrays? (Relative newbie)
  • Previous by thread: Re: Simplifying an expression in light of relationships between variables?
  • Next by thread: Re: Axes in ShowGraph