[Tioga-users] Restricting Line Plotting Domain/Range?

Taro Sato nomo17k at gmail.com
Wed Jan 30 14:17:40 EST 2008


On Jan 30, 2008 10:11 AM, Justin D. R. Steinfadt <jdrs at physics.ucsb.edu> wrote:
>
> Is there perhaps some way to create a "Bounding Box" of sorts within the
> plot frame that restricts where a method like show_polyline might be
> able to draw a line?


Justin -- I think you should be able to do this by manually specifying
your boundary in show_plot:

 t.show_plot(bounds)

where you probably are using something like plot_boundaries( ... ) to
make "bounds" on fly now.  Perhaps you can get the return value of
plot_boundaries into an array and replace the elements corresponding
to the the limits for x axis.  (Unfortunately it's been a while since
I used Ruby so I cannot give you a sample code.)

Taro


More information about the Tioga-users mailing list