replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Native %pl
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Native %pl
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8208
Location: Salford, UK

PostPosted: Fri Dec 02, 2016 4:38 pm    Post subject: Reply with quote

Agustin

If you can send me your code then I will take a closer look at what is happening within ClearWin+.
Back to top
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Fri Dec 02, 2016 4:46 pm    Post subject: Reply with quote

I can send you a zip file with the source code and the data file. Just let me know where to send it.

Agustin
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8208
Location: Salford, UK

PostPosted: Wed Dec 07, 2016 5:47 pm    Post subject: Reply with quote

Here is a link to the latest and probably the final version of %pl in the current development exercise.

https://www.dropbox.com/s/9yau5etm8koqrt2/newDlls17.zip?dl=0
Back to top
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Wed Dec 07, 2016 6:19 pm    Post subject: Reply with quote

Paul,

reading your notes, I noticed that first you say:

The function DCHANGE_GRAPH_DATA@ or FCHANGE_GRAPH_DATA@ can be called after a window has been formed in order to change the data.

and immediately you write:

INTEGER FUNCTION CHANGE_PLOT_INT@(id, option, index, dval)
INTEGER FUNCTION CHANGE_PLOT_DBL@(id, option, index, fval)
INTEGER id,index,dval
CHARACTER*(*) option
REAL*8 fval


so, "change_graph" or "change_plot" is what we have to use? and...CHANGE_GRAPH_STYLE@ is no more available?.....

Agustin
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8208
Location: Salford, UK

PostPosted: Wed Dec 07, 2016 7:45 pm    Post subject: Reply with quote

Agustin

Yes that needs correcting.
I changed the names and the previous functions have been replaced.
The sample programs have the correct names.
Back to top
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Wed Dec 07, 2016 8:56 pm    Post subject: Reply with quote

I can't see major changes in the new DLLs respect to the last ones (I mean about new controls)...yes, now we have circles and discs, but.....my problem with tick labels reported before (i.e. their dependence on the x data range) are still present. And as far as I understand, you still cannot change the dx or max values in the x and y axes each time you change the data set to plot......or am I wrong?.....in the meantime, I am replacing the old functions with the new ones, and will see what happens, but I just wanted to share my first thoughts....

Agustin
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8208
Location: Salford, UK

PostPosted: Thu Dec 08, 2016 8:38 am    Post subject: Reply with quote

Agustin

Here is a list of things that you can change after the %pl control has been formed...

"x_min", "x_max","y_min","y_max","dx","dy","colour",
"pen_style","symbol","link","x_data","y_data".

I have not attempted to provide major and minor tick marks.

Thank you for your help in giving a user's perspective for this development. We now have a native %pl that ports almost all of the existing ClearWin+ interface to SIMPLEPLOT as well as providing some useful additional features.

32 bit SIMPLEPLOT provides an extensive library of functions that can be accessed from 32 bit ClearWin+ via the [user_drawn] option. All of this lies outside of the scope of the present exercise.
Back to top
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Thu Dec 08, 2016 2:33 pm    Post subject: Reply with quote

well, this is not what I find.....in my program I put

Code:
ans=CHANGE_PLOT_DBL@(0, "dx", 1, 10.0)
ans=CHANGE_PLOT_DBL@(0, "x_max", 1, xmax)
ans=CHANGE_PLOT_DBL@(0, "x_min", 1, xmin)
ans=CHANGE_PLOT_DBL@(0, "y_max", 1, ymax)
ans=CHANGE_PLOT_DBL@(0, "x_data", 1, data_x1)
ans=CHANGE_PLOT_DBL@(0, "y_data", 1, data_y1)
ans=CHANGE_PLOT_INT@(0, "colour", 1, RGB@(0,0,255))
ans=CHANGE_PLOT_INT@(0, "link", 1, 2)
ans=CHANGE_PLOT_INT@(0, "symbol", 1, 0)
ans=CHANGE_PLOT_INT@(0, "pen_style", 1, 0)
CALL simpleplot_redraw@()


and the program crashes....the debugger stops at the last statement
saying "invalid floating point operation"

This is why I said that I did not find major changes.....but as I also said...I should be wrong.....but I do not understand what I am doing wrong here...

Agustin
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8208
Location: Salford, UK

PostPosted: Thu Dec 08, 2016 3:20 pm    Post subject: Reply with quote

Agustin

These functions return an integer value so is ans INTEGER*4?

Failing this, have you updated clrwin.mod etc.?
Back to top
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Thu Dec 08, 2016 3:49 pm    Post subject: Reply with quote

yes, ans is integer*4 (the same I use in ans=winio@....in my program), and I have updated all the files you provided in the zip file......so I have no clue about where is the problem....

Agustin
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8208
Location: Salford, UK

PostPosted: Thu Dec 08, 2016 5:25 pm    Post subject: Reply with quote

Agustin

Can you send me your code again.
Back to top
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Thu Dec 08, 2016 6:23 pm    Post subject: Reply with quote

I have just sent a zip file to your email address.

Agustin
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8208
Location: Salford, UK

PostPosted: Thu Dec 08, 2016 8:00 pm    Post subject: Reply with quote

Agustin

Have you tried using /checkmate? There seems to be a problem with the input data.
Back to top
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Thu Dec 08, 2016 8:03 pm    Post subject: Re: Reply with quote

PaulLaidler wrote:
Agustin

I have not attempted to provide major and minor tick marks.

This is actually a minor issue, so no problem

Quote:

32 bit SIMPLEPLOT provides an extensive library of functions that can be accessed from 32 bit ClearWin+ via the [user_drawn] option. All of this lies outside of the scope of the present exercise.


At this stage of %pl, I would say that for 2D plots we have almos all we need. Simpleplot offers some additional features that are nice but not esential for plotting 2D data.

The only feature that still lacks Clearwin is the option of changing the axes captions during the run of a program. I do not know if you forgot this during the last development of %pl or you find that it is at this stage out of the scope and therefore, we don't have to expect anything about this in the near future.

Agustin
Back to top
View user's profile Send private message
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Thu Dec 08, 2016 8:08 pm    Post subject: Re: Reply with quote

PaulLaidler wrote:
Agustin

Have you tried using /checkmate? There seems to be a problem with the input data.


No, I didn't. But I think that you have also observed that there was no problem with the input data when we used the previous version of DLL.....anyway, I will check this....

Agustin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 6 of 9

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group