Jump to content

File:Dini Surface.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (4,893 × 2,469 pixels, file size: 1.24 MB, MIME type: image/png)

Summary

Description
English: The surface plot was created in python using matplotlib.
Date
Source Own work
Author Pratik Barve
PNG development
InfoField
 
This PNG graphic was created with Python.
Source code
InfoField

Python code

def dini(a,b):
    u = np.linspace(0,4*np.pi,2000)
    v = np.linspace(0.01,1,2000)
    u,v = np.meshgrid(u,v)
    x = a*np.cos(u)*np.sin(v)
    y = a*np.sin(u)*np.sin(v)
    z = a*(np.cos(v)+np.log(np.tan(v/2)))+(b*u)
    return x,y,z

x,y,z=dini(1,0.5)

fig,ax = plt.subplots(1,2,dpi=600,subplot_kw={"projection":"3d"},constrained_layout=True)
ax[0].plot_surface(x,y,z,linewidth=0.15,cmap='viridis')
ax[1].plot_surface(x,y,z,linewidth=0.15,cmap='viridis')
ax[0].set_axis_off()
ax[1].set_axis_off()
ax[0].view_init(30,10)
ax[1].view_init(10,0)

Licensing

I, the copyright holder of this work, hereby publish 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.
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.

Captions

Dini's surface with 0<=u<=4 pi and 0 < v < 1 with constants a = 1, b = 0.5.

Items portrayed in this file

depicts

1 October 2021

image/png

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current22:11, 1 October 2021Thumbnail for version as of 22:11, 1 October 20214,893 × 2,469 (1.24 MB)Pratik BarveUploaded own work with UploadWizard

The following page uses this file:

Metadata