Plot

The following plot function need only matplotlib for plotting.

plotcf

WaveBlocksND.Plot.plotcf(grid, phase, modulus, darken=None, axes=None, linestylep='solid', linewidthp=1, color='k', **kwargs)[source]

Plot the modulus of a complex valued function f:\mathbb{R} \rightarrow \mathbb{C} together with its phase in a color coded fashion.

Parameters:
  • grid – The grid nodes of the real domain R
  • phase – The phase of the complex domain result f(grid)
  • modulus – The modulus of the complex domain result f(grid)
  • darken – Whether to take into account the modulus of the data to darken colors.
  • axes – The axes instance used for plotting.
  • linestylep – The line style of the phase curve.
  • linewidthp – The line width of the phase curve.
  • color – The color of the phase curve.

plotcm

WaveBlocksND.Plot.plotcm(matrix, phase=None, modulus=None, darken=None, axes=None, **kwargs)[source]

Plot complex matrices with the phase of the entries encoded into the usual color code.

Parameters:
  • matrix – The matrix data.
  • phase – The phase of the entries, if not given they are computed.
  • modulus – The modulus of the entries, if not given they are computed.
  • darken – Whether to take into account the modulus of the data to darken colors.
  • axes – The axes instance used for plotting.

Note that the additional keyword arguments are passed to the plot function.

stemcf

WaveBlocksND.Plot.stemcf(grid, phase, modulus, darken=None, axes=None, linestylep='solid', linewidthp=2, color=None, markerp='o', **kwargs)[source]

Stemplot the modulus of a complex valued function f:I -> \mathbb{C} together with its phase in a color coded fashion. Additional keyword arguments are passed to the plot function.

Parameters:
  • grid – The grid nodes of the real domain grid \Gamma
  • phase – The phase of the complex domain result f(\Gamma)
  • modulus – The modulus of the complex domain result f(\Gamma)
  • darken – Whether to take into account the modulus of the data to darken colors.
  • axes – The axes instance used for plotting.
  • linestylep – The line style of the phase curve.
  • linewidthp – The line width of the phase curve.
  • color – The color of the stemmed markers.
  • markerp – The shape of the stemmed markers.

plotcf2d

WaveBlocksND.Plot.plotcf2d(x, y, z, darken=None, axes=None, limits=None, **kwargs)[source]

Plot complex valued functions \mathbb{R}^2 \rightarrow \mathbb{C} with the usual color code.

Parameters:
  • x – The x values.
  • x – The y values.
  • z – The values z = f(x,y).
  • darken (Float or None to disable darkening of colors. Default is R = 1.0.) – How strong to take into account the modulus of the data to darken colors. Values with |z| = R will get fully saturated colors while |z| = 0 is black and |z| \rightarrow \infty get whiter and whiter.
  • axes – The axes instance used for plotting.

contourcf

WaveBlocksND.Plot.contourcf(gridx, gridy, values, leveldist=0.02, ax=None)[source]

Plot a function f:I^2 \rightarrow C with contour levels. Put levels in linear and fixed distances on the third axis.

Parameters:
  • gridx – The grid nodes along the x axis of the real domain R^2
  • gridy – The grid nodes along the y axis of the real domain R^2
  • values – The values f(x,y) of the function.
  • leveldist – The distance between the contour levels. Default is 0.02.

stem3d

WaveBlocksND.Plot.stem3d(u, v, w, fig=None, markerp='o')[source]

This function makes a three dimensional stem plot.

stemcf3d

WaveBlocksND.Plot.stemcf3d(gridu, gridv, phase, modulus, darken=None, fig=None, markerp='o', **kwargs)[source]

Stemplot the modulus of a complex valued function f:I\times I -> \mathbb{C} together with its phase in a color coded fashion. Additional keyword arguments are passed to the plot function.

Parameters:
  • gridu – The x components of the grid nodes of the real domain grid \Gamma
  • gridv – The y components of the grid nodes of the real domain grid \Gamma
  • phase – The phase of the complex domain result f(\Gamma)
  • modulus – The modulus of the complex domain result f(\Gamma)
  • darken – Whether to take into account the modulus of the data to darken colors.
  • fig – The figure instance used for plotting.
  • markerp – The shape of the stemmed markers.

legend

WaveBlocksND.Plot.legend(*args, **kwargs)[source]

Overwrites the pylab legend function.

It adds another location identfier ‘outer right’ which locates the legend on the right side of the plot

The args and kwargs are forwarded to the pylab legend function