MathGroup Archive 2006

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

Search the Archive

graphics manipulation

Hello to all.

Below I give some code that appeared in the course of  practicing on
graphics issues.



With the following command vertical lines are displayed at each point
by the Plot function in order to produce plot1.

Show[{plot1, (Graphics[{Red, Line[{{First[#1], 0}, #1}]}] & ) /@
Cases[FullForm[plot1], {(x_)?NumberQ, (y_)?NumberQ}, Infinity]},
ImageSize -> {400, 300}]

Here is some other simple code.


lst = Partition[Range[0, 10], 2, 1];
Show[(Plot[BesselJ[0, x], {x, #1[[1]], #1[[2]]}, DisplayFunction ->
PlotStyle -> {AbsoluteThickness[#1[[2]]/2], Hue[#1[[1]]/11]}] & ) /@
lst, DisplayFunction -> $DisplayFunction]

I will really appreciate if someone provide me with other simple
examples of similar or more advanced level.

Next, the code below vertically displays the x-ticklabels
(adopted by Bruce Colleti)

g = Plot[x, {x, 0, 1}];
g = FullGraphics[g];
g = g /. Text[text_, {x_, y_ /; y < 0}, offset_] -> Text[text, {x, y},
offset, {0, 1}];
Show[g, PlotRange -> All, ImageSize -> {400, 300}];

However for plot1 there is a problem as you can see.

FullGraphics[plot1] /. Text[text_, {x_, y_ /; y < 0}, offset_] ->
Text[text, {x, y}, offset, {0, 1}];
Show[%, PlotRange -> All, ImageSize -> {400, 300}];

How can I modify it in order to change the display of the x-ticklabels
Is another way to get the same result?

Also, because of the documentation of FullGraphics is very poor, I
really appreciate if someone will provide me with further examples.

Lastly, I would like to mention, even I know that I say something well
known to the active members of this forum, that in private
communication with David Park it appeared clearly that issues like
those in my questions can be very easily dealt with his excellent
DrawGraphics package.
Thanks in advance for any response.


  • Prev by Date: Re: damped oscilations data fit
  • Next by Date: Re: sum of binomials .. bug ?
  • Previous by thread: Re: Weird (but reproducible) screen display glitch: \[ImaginaryI] appears as just "i"
  • Next by thread: Re: Display glitch: \[ImaginaryI] appears as just "i"