comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Create curves
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Create curves [message #92124] Fri, 16 October 2015 06:41 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

I created an ellipsoid shape as follows

NX=128
NY=128
Ellipxe = fltarr(NX,NY)

for i=0L, NX-1 do begin
for j=0L, NY-1 do begin
if (0.1*(j-50)^2.+0.23*(i-95)^2. LT 100) then begin
Ellipse[i,j] = 10.
endif
endfor
endfor
tvscl, Ellipse


I wanted to change the direction of the ellipse to be diagonal (i.e. not plotted vertically). Does anyone knows how to do that?


Also I found that the bean curve in Cartesian coordinates has the following form:

(x^2+y^2)^2 = x^3+y^3

I tried the following but it doesn't work

NX=128
NY=128
Bean_curve = fltarr(NX,NY)

for i=0L, NX-1 do begin
for j=0L, NY-1 do begin
if ((0.1*(j)^2.+0.23*(i)^2.)^2. EQ (0.1*(j)^3.+0.23*(i)^3.)) then begin
Bean_Curve[i,j] = 10.
endif
endfor
endfor

tvscl, bean_Curve

Can anyone help with this?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting symbols filled with pattern(s)
Next Topic: Read ENVI file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:07:28 PDT 2025

Total time taken to generate the page: 0.00227 seconds