File:Sin z vector field 02 Pengo.svg

Summary

Description
English: sin(z)
Date
Source Own work
Author Pengo
Other versions
SVG development
InfoField
Source code
InfoField

Python code

from pylab import *
from numpy import ma

xmin= -2*pi
xmax=  2*pi
trimx = pi/2
ymin= -2.6
ymax=  2.6
trimy = .4

X,Y = meshgrid( arange(xmin,xmax, pi/8),arange(ymin,ymax,.2) )
U = sin(X) * cosh(Y)
V = cos(X) * sinh(Y)

figure()
M = sqrt(pow(U, 2) + pow(V, 2)) # color by abs
#M = arctan(V/U) # color by angle
Q = quiver( X, Y, U, V, M, units='x', width=0.022, scale=1/0.15) # pivot='mid', 
plot(X, Y, 'k,') # dots: 'k.' 'k,' ',' 's'
axis([xmin+trimx, xmax-trimx, ymin+trimy, ymax-trimy])
title("sin(z)")

plt.savefig("sin_z_vector_field_02_Pengo.svg")
plt.savefig("sin_z_vector_field_02_Pengo.png")

show()

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Category:Self-published work#Sin%20z%20vector%20field%2002%20Pengo.svgCategory:PD-self#Sin%20z%20vector%20field%2002%20Pengo.svg Category:Images with Python source code Category:Sine function Category:Vector fields
Category:Images with Python source code Category:PD-self Category:Self-published work Category:Sine function Category:Valid SVG created with Matplotlib code Category:Vector fields