Exemple #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)
Exemple #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)

Exemple #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]])),
Exemple #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