File:BetaFuncDemo.svg

Summary

Description
English: Beta function on real plane
Русский: График бета-функции на действительной плоскости
Date
Source Own work
Author Shiyu Ji
Other versions
A raster version of this image is available. It should be used in place of this vector image when superior.
File:BetaFuncDemo.svgFile:Beta function on real plane.png

In general, it is better to use a good SVG version.


Bitmap image
Category:Bitmap version available
SVG development
InfoField

Python 3 Source Code

# Beta function over [0.03, 4]^2.
# Use Inkscape to enlarge and adjust the figure position 
# (degroup, enlarge and regroup the SVG elements etc.).

from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as pl
import numpy as np
from scipy.special import beta

# Prepare the data by Beta(x, y)
X = np.arange(0.03, 4.0, .01)
Y = np.arange(0.03, 4.0, .01)
Z = np.ndarray(shape=(len(X), len(Y)), dtype = float)
for i in range(len(X)):
        for j in range(len(Y)):
                Z[i][j] = beta(X[i], Y[j])
# Draw the data
fig = pl.figure()
ax = fig.add_subplot(111, projection = '3d')
gridX, gridY = np.meshgrid(X, Y)
ax.plot_surface(gridX, gridY, Z, lw = 0.0)
pl.xticks([0, 1, 2, 3, 4])
pl.yticks([0, 1, 2, 3, 4])
ax.contour(X, Y, Z, zdir='z', offset=0)
ax.set_xlim([4.0, 0.0])
ax.set_ylim([4.0, 0.0])
ax.set_zlim([0, 50])
fig.savefig('betaFuncDemo.svg')

Licensing

Shiyu Ji, the copyright holder of this work, hereby publishes it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Attribution:
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#BetaFuncDemo.svg
Category:Self-published work Category:Euler beta function Category:SVG surface plots
Category:Bitmap version available Category:CC-BY-SA-4.0 Category:Euler beta function Category:SVG surface plots Category:Self-published work Category:Valid SVG created with Inkscape