Example #1
0
         _with  = 'lines',
         set    = 'polar',
         square = True,
         yrange = [-5,5],
         legend = a.ravel() )
time.sleep(sleep_interval)


################################
# some 3d stuff
################################

# gp.plot a sphere
gp.plot3d( x_3d, y_3d, z_3d,
           _with = 'points',
           title  = 'sphere',
           square = True,
           legend = 'sphere')
time.sleep(sleep_interval)

# sphere, ellipse together
gp.plot3d( (x_3d * np.array([[1,2]]).T,
            y_3d * np.array([[1,2]]).T,
            z_3d,
            { 'legend': np.array(('sphere', 'ellipse'))}),

           title  = 'sphere, ellipse',
           square = True,
           _with  = 'points')
time.sleep(sleep_interval)
Example #2
0
         _with  = 'lines',
         set    = 'polar',
         square = True,
         yrange = [-5,5],
         legend = a.ravel(),
         wait = 1)


################################
# some 3d stuff
################################

# gp.plot a sphere
gp.plot3d( x_3d, y_3d, z_3d,
           _with = 'points',
           title  = 'sphere',
           square = True,
           legend = 'sphere',
           wait = 1)

# sphere, ellipse together
gp.plot3d( (x_3d * np.array([[1,2]]).T,
            y_3d * np.array([[1,2]]).T,
            z_3d,
            { 'legend': np.array(('sphere', 'ellipse'))}),

           title  = 'sphere, ellipse',
           square = True,
           _with  = 'points',
           wait = 1)

Example #3
0
    _with='lines',
    set='polar',
    square=True,
    yrange=[-5, 5],
    legend=a.ravel(),
    wait=1)

################################
# some 3d stuff
################################

# gp.plot a sphere
gp.plot3d(x_3d,
          y_3d,
          z_3d,
          _with='points',
          title='sphere',
          square=True,
          legend='sphere',
          wait=1)

# sphere, ellipse together
gp.plot3d((x_3d * nps.transpose(np.array([[1, 2]])),
           y_3d * nps.transpose(np.array([[1, 2]])), z_3d,
           dict(legend=np.array(('sphere', 'ellipse')))),
          title='sphere, ellipse',
          square=True,
          _with='points',
          wait=1)

# similar, written to a png
gp.plot3d((x_3d * nps.transpose(np.array([[1, 2]])),
Example #4
0
    _with='lines',
    set='polar',
    square=True,
    yrange=[-5, 5],
    legend=a.ravel())
time.sleep(sleep_interval)

################################
# some 3d stuff
################################

# gp.plot a sphere
gp.plot3d(x_3d,
          y_3d,
          z_3d,
          _with='points',
          title='sphere',
          square=True,
          legend='sphere')
time.sleep(sleep_interval)

# sphere, ellipse together
gp.plot3d((x_3d * np.array([[1, 2]]).T, y_3d * np.array([[1, 2]]).T, z_3d, {
    'legend': np.array(('sphere', 'ellipse'))
}),
          title='sphere, ellipse',
          square=True,
          _with='points')
time.sleep(sleep_interval)

# similar, written to a png