Hi Alan, that is most definitely possible:
function range( n ) integer :: n real(plflt), dimension(n) :: range range = (/ (i, i=1,n) /) end function range I will introduce that function and maybe some others as well. Regards, Arjen On 2011-10-26 10:19, Alan W. Irwin wrote: > > One suggestion is to change that first statement to the cleaner looking > > x = 3.6_plflt * range > > > where you declare at the start of plot3 (subject to my shaky Fortran 95 > syntax) > > integer, parameter :: md = 101 > real(plflt), dimension(1:md) :: range=(/(j,j=0,md-1)/), x, y > > I take my inspiration from examples/python/xw01.py where we have > > x = 3.6*arange(101) > y = sin((pi/180.)*x) > Is that idea > possible or is Fortran 95 fundamentally more limited than numpy in > this regard? > DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel