using Glumpy with bertini_real

platform

Unix, Windows

synopsis

The glumpy plotter uses OpenGL to render a decomposed surface created using bertini_real.

class glumpyplotter.GlumpyPlotter(data=None)

Creates the glumpyplotter object which is used to render 3d surfaces created from bertini_real

plot_critical_curve(cmap=None, color_function=None)

This function plots the critical curve of a surface.

plot_surface_raw(cmap=None, color_function=None)

Method used to plot a raw surface.

plot_surface_samples(cmap=None, color_function=None)

Method used to plot a surface.

class glumpyplotter.ReversableList(iterable=(), /)
reverse()

Reverse IN PLACE.

glumpyplotter.default_color_function(x_coordinate, y_coordinate, z_coordinate)

Helper method for make_colors() The default color function that is used to compute our points that will then be fed into the colormap.

Parameters
  • x – x coordinate of triangle.

  • y – y coordinate of traingle.

  • z – z coordinate of triangle.

Return type

A function to be used to feed the points into a colormap.

glumpyplotter.make_colors(points, cmap, color_function)

Helper method for plot() Computes colors according to a function then applies a colormap from the matplotlib library.

Parameters
  • points – The triangles that will be rendered.

  • cmap – Matplotlib colormap to be used.

  • color_function – Function used to compute colors with colormap.

Return type

A list of length 4 containing R,G,B, and Alpha values.

glumpyplotter.plot_critical_curve(data=None, cmap='hsv', color_function=None)

Sets default values for colormap if none are specified.

glumpyplotter.plot_surface_raw(data=None, cmap='hsv', color_function=None)

Sets default values for colormap if none are specified.

glumpyplotter.plot_surface_samples(data=None, cmap='hsv', color_function=None)

Sets default values for colormap if none are specified.