Package reflectometry :: Package model1d :: Package tests :: Module mplot3d

Module mplot3d

Classes
  Axes3D
  Axis
  Line3D
Make a 2D line pretend to be 3D
  Line3DCollection
  Poly3DCollection
Functions
 
draw(text, renderer)
 
draw_linec(self, renderer)
 
draw_polyc(self, renderer)
 
get_colors(c, num)
Stretch the color argument to provide the required number num
 
iscolor(c)
 
juggle_axes(xs, ys, zs, dir)
Depending on the direction of the plot re-order the axis
 
line_draw(self, renderer)
Draw a 2D line as a 3D line
 
norm_angle(a)
 
owrap(text)
 
patch_draw(self, renderer)
 
sensible_format_data(self, value)
 
set_line_data(line, xs, ys, zs)
 
set_text_data(text, x, y, z)
 
test1(**kw)
 
test2(**kw)
 
test3(**kw)
 
text_draw(self, renderer)
 
text_update_coords(self, renderer)
Modified method update_coords from TextWithDash
 
tick_update_position(tick, x, y, z, angle)
 
wrap_line(line, zs, dir='z')
Wrap a 2D line so that it draws as a 3D line
 
wrap_patch(patch, zs, dir='z', fn=<function patch_draw at 0xae53b30>)
 
wrap_text(text, zs, dir='z')
 
zalpha(colors, zs)
Modify the alphas of the color list according to depth
Variables
  jet = <matplotlib.colors.LinearSegmentedColormap instance at 0...
Function Details

juggle_axes(xs, ys, zs, dir)

 

Depending on the direction of the plot re-order the axis

This is so that 2d plots can be plotted along any direction.

text_update_coords(self, renderer)

 

Modified method update_coords from TextWithDash

I could not understand the original text offset calculations and it gave bad results for the angles I was using. This looks better, although the text bounding boxes look a little inconsistent


Variables Details

jet

Value:
<matplotlib.colors.LinearSegmentedColormap instance at 0x62cdb98>