MathGroup Archive 2012

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

Search the Archive

Is there a way to stop the vertex labels from over-lapping?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg127257] Is there a way to stop the vertex labels from over-lapping?
  • From: Muhammad Abuzaid <muhammad.abuzaid at gmail.com>
  • Date: Wed, 11 Jul 2012 18:22:31 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

Wondering whether someone can help me with the following two issues:

1. Is there a way to stop the vertex labels from over-lapping? (eg, "Shape
of flood front" and "Current owc & flood front" boxes over-lap)
2. Is there a way to make the lines (arrows) thicker ?
3. Is there a way to avoid the arrows being covered by the labels/boxes?

Things I've tried so far:
1.a. Tried explicitly choosing the coordinates of the plot (very manual
process, invloving exporting and importing in excel)
1.b. Tried expanding the graphics so thet the labels don't over-lap...but
it ends up wasting too much 'screen' real-estate and looking silly
2. Tried using the Thickness[] and Thick options but couldn't get it to
work here
3. Tried the setback parameter of the Arrow[] function, but if its too
small, the arrow is sometimes covered by the label...if its too big, the
arrowhead is too far from the target

I also thought the ImagePadding function/option/directive could be used but
could figure out how...

Mathematica code below:

GraphPlot[{"Current owc & flood front"->"Oil presence by layer","Current
owc & flood front"->"WCUT","Injection distribution"->"Shape of flood
front","Oil presence by layer"->"Location of remaining
oil","Pdifferential"->"Shape of flood front","Shape of flood
front"->"Current owc & flood front","Sor"->"Oil presence by
layer","Sor"->"Sr","Coning"->"Shape of flood front","Geological
variations"->"Sand presence by layer","Geological variations"->"Rock
type","Relative permeability"->"Shape of flood front","Rock
type"->"Sor","Rock type"->"Rock quality","Aquifer strength"->"Current owc &
flood front","Measurement uncertainty"->"Injection distribution","Shale
length continuity"->"Current owc & flood
front"},VertexLabeling->All,EdgeRenderingFunction->({Arrowheads[.02],Arrow[Line[#1,VertexColors->{Red,Black}],0.2]}&)]




Thanks




  • Prev by Date: Re: Replace, ReplaceAll and If time performace comparition
  • Next by Date: Re: How to write code for Plotting Polar Coordinates in
  • Previous by thread: Re: Replace, ReplaceAll and If time performace comparition
  • Next by thread: Re: Is there a way to stop the vertex labels from over-lapping?