# Author: Ika# Date: 12/31/2014settermsvgfont'Times, 18'size1000,1000setoutput'affine_conn_eg2.svg'setsizeratio1setxrange[-1.5:1.5]setyrange[-1.5:1.5]# Unit along the axessetxtics1setytics1unsetgridunsetlabelsetkeyoff# The following block shows the red vector field.# j stands for a different radius rdofor[j=1:25]{r=2/25.0*j# i stands for a different angle \thetadofor[i=1:50]{theta=2*pi/50.0*(i-1)setarrowj*50+ifromr*cos(theta),r*sin(theta)tor*cos(theta)-0.1*sin(theta),r*sin(theta)+0.1*cos(theta)lw1lcrgb"red"}}# The following block shows the blue vector field.# j stands for a different radius rdofor[j=1:10]{r=2/10.0*j# i stands for a different angle \thetadofor[i=1:50]{theta=2*pi/50.0*(i-1)setarrowj*50+i+2000fromr*cos(theta),r*sin(theta)to(r+0.1)*cos(theta),(r+0.1)*sin(theta)lw1lcrgb"blue"}}# To show the arrows, I have to plot something. So I choose a trivial zero function.setparametricplot0,0lw1lcrgb"rgb"settermx11setoutput
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
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.