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: 7916
Location: Salford, UK

PostPosted: Thu Dec 01, 2016 9:12 am    Post subject: Reply with quote

Here is a new native %pl to try...

https://www.dropbox.com/s/fvl3qcrdzwqmmro/newDlls16.zip?dl=0

Don't forget to backup your original release.

Notes, samples and new "include" files are provided in the download.
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 01, 2016 6:00 pm    Post subject: Reply with quote

Great job Paul!......I am testing your new version and runs fine.....the frame option is nice, and the variety of options now make %pl a very good tool for 2D plots....however.....I still have a pair of questions:

a) the lack of circles within the symbols set is due to some kind of difficulty to make %pl to draw them?......I ask this just because open and filled circles are usually the first symbols one selects for a plot...although I do not know why.....

b) is there any possibility to change the location of the x-axis caption to the centre of the axis?. Now we have the y-caption centred (in general, but in some cases it can appear quite below the centre) but the x caption appears (always) located towards the end of the axis.

c) I am now plotting a data set that goes from 0.0 to 60.0 on the x-axis and the result is that the x-axis shows 30 tick labels and the y-axis 23. Moreover: as the y-values are not very far one from the other, I have duplicated labels among those 23, i.e. 0.01,0.01,0.02,0.02,0.03,0.03, etc....with [x_array] option, "dx" does not work. I do not know if it could be possible to indicate %pl to write a label every n ticks.

These are some kind of embellishments of %pl, not critical issues......in the meantime, I will continue testing the new DLLs....thanks a lot Paul for your efforts.

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 01, 2016 6:19 pm    Post subject: Reply with quote

More about the ticks.....

As I mentioned, I have a data set with x going from 0 to 60, and the number of ticks depends in a funny way on the x-range plotted. The following is what I have obtained after plotting a region of the data set.

The x-axis shows:

Case 1: data plotted from 0 to 5: tick interval =0.15
Case 2: data plotted from 0 to 10: tick interval = 0.30
Case 3: data plotted from 0 to 15: tick interval = 0.45
Case 4: data plotted from 0 to 20: tick interval b= 0.5 from 0 to 10, then 1 from 10 to 17 and finally no tick from 17 to 20
Case 5: data plotted from 0 to 25 (0-30 or 0-35): tick interval = 1
Case 6: data plotted from 0 to 40: tick interval = 1 from 0 to 34, then no tick
Case 7 data plotted from 0 to 45: tick interval = 1.5
Case 8: data plotted from 0 to 50: tick interval = 1.5
Case 9: data plotted from 0 to 55: tick interval = 1.5, but no tick above 51
Case 10: data plotted from 0 to 60: tick interval = 2

These results indicate that there is no simple way in which Clearwin makes the division of the axis.

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


Joined: 21 Feb 2005
Posts: 7916
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: 7916
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: 7916
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: 7916
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: 7916
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: 7916
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
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