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 ... 23, 24, 25
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 1772
Location: South Pole, Antarctica

PostPosted: Sun Apr 15, 2018 11:38 am    Post subject: Reply with quote

Paul,

I checked 8.30 with DLL23

Looks like for linear scale plots the placing of numbers on axis were fixed so that plot has now reasonable amount of numbers per axis and the numbers itself are not looking "bad".

The next would be great to fix bugs in LOG scale which are long overdue. The %pl then will be very useful tool. The examples of the bugs are described and pictured in detail in my last post on page 4 of this thread.

One more thing: a bug was introduced with the framed plot, you can see here that the thickness of the line of the frame is not the same:

Code:
   use clrwin
   parameter (N=5)
   real*8 X(N), Y(N)
   Data X/1e1, 1e2, 1e3,  1e4, 1e5/
   Data Y/2.2, 66, 8333, 1111, 777/

   i=winio@('%sf%ts%bf%es&', 2d0)
   call winop@("%pl[axes_pen=3,width=3,x_axis='X Axis Title',y_axis='Y Axis Title']") 

   i=winio@('%ww%pv%pl[native,framed,x_array,scale=log_log,N_GRAPHS=1]', 625,500, n, X, Y) 
   end
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Apr 16, 2018 12:58 pm    Post subject: Reply with quote

The option [frame_pen=dval] now provides the line width of the frame where dval is the width.

If you can post or send me the code for the bug then I will aim to look into it when time permits.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 1772
Location: South Pole, Antarctica

PostPosted: Mon Apr 16, 2018 1:45 pm    Post subject: Reply with quote

Thanks for new option. As to the codes they are here, cited from page 4 above

DanRRight wrote:


1)
Code:
   use clrwin
   parameter (N=5)
   real*8 X(N), Y(N)
   Data X/1e1, 1e2, 1e3,  1e4, 1e5/
   Data Y/2.2, 66, 8333, 1111, 777/

   i=winio@('%ww%pv%pl[framed,x_array,scale=log_log,N_GRAPHS=1]%es', 625,500, N, X, Y) 

   end


Problem: if you try to resize the plot just a tiny bit pulling window border or corner using mouse it abruptly displays Y correctly but X not.

2) The same code with "beautifications" with just one-two more lines of code like here looks better. This kind of line widths and design actually have to be a default, and the code above has to be like this one below
Code:
   use clrwin
   parameter (N=5)
   real*8 X(N), Y(N)
   Data X/1e1, 1e2, 1e3,  1e4, 1e5/
   Data Y/2.2, 66, 8333, 1111, 777/

   i=winio@('%sf%ts%bf%es&', 2d0)
   call winop@("%pl[axes_pen=3,width=3,x_axis='X Axis Title',y_axis='Y Axis Title']") 

   i=winio@('%ww%pv%pl[native,framed,x_array,scale=log_log,N_GRAPHS=1]', 625,500, n, X, Y) 
   end




In other words, the lines for axis and curves with default width 1 pixel are unacceptable as a default. Such beautifications take a lot of time and always causes many recompilations. If Clearwin will make good looking plots it will be accepted like Matlab.

3) Additional problems: this nicer looking example shows the defects of absence of Scientific, Decimal etc numbering formatting options: the numbering does not look concise, in one style, it mixes different styles.

As to the numbering formats of LOG plots we here suggested to introduce few distinct user-definable formatting options: Scientific (numbers shown as 10^0, 10^1, 10^2, 10^3 etc) and Decimal (1, 10, 100, 1000...). All these ( and few other options like Engineering (1e0, 1e1, 1e2, 1e3) and Decimal with FP (1.0, 2.0, 3.0) ) are already there, they just need to be introduced into the user changeable settings.

With the LOG scale it is often possible for the code to choose these formats automatically: if the numbers are very small or very large and there are a lot of orders of magnitude to display then just the Scientific format has to be used

At the end here how this exact XY data is visualized by the professional scientific software using Scientific and Decimal formats. As you can compare the new %PL is already pretty close to the best of the best (the new PL can also do antialiasing for curves and in this example is even better doing data interpolation - compare how 8333 peak values are displayed)



Decimal format is of course the most difficult. If extend the plotted data to
Code:
0.01  0.011
0.1   0.044
1      0.33
10      2.2
100      66
1000   8333
10000  1111
100000  777

the OriginLab plots it this way

and if even more then 1e-3, 1e-4 ...
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Apr 17, 2018 1:00 pm    Post subject: Reply with quote

Item 1 has now been fixed.
Improvements relating to item 3 might be possible later if time permits.
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 751

PostPosted: Wed Apr 18, 2018 12:20 pm    Post subject: Reply with quote

Dan,
I too am running some tests and have seen some things which appear still to exist.
However, I'm still running v8.1+dlls23v8.3 combination and I've just seen that I don't get the same plots as you (scales)when I run your codes - that'll be the reason I suppose.

I'm going to install v8.3 now the perso version is available and will come back to you.

Just 2 points in the meantime:-
You say ...
Quote:
In other words, the lines for axis and curves with default width 1 pixel are unacceptable as a default.

which I understand from your point of view (publications 'heavy definition' plots but for others (like myself) the thinner lines could be more applicable !!! Swings and roundabouts, what's good for one isn't necessarily for another (or vice versa)

Second thing.
Can you try the following with your examples please :-

When the window first opens, click the reduce to taskbar button top right without touching anything else.
Then immediatly recover the widow from the taskbar.

When I do this the window reappears BUT BLANK !!!
Further, if you then try to re-size that window, all works ok for reduction via the lo/r sides of the window, or from bottom edge,and indeed from the bottom corners BUT re-sizing can't be done using the top l/r corners !!! (the cursor doesn't change).
Strange behaviour, do you get the same ?

(I'm on Windows 7)
_________________
"This is the triumph of folly.
The machine, which knows no rest, ought to remain a tool,
... but instead becomes our master and will swallow up our life and soul"
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 1772
Location: South Pole, Antarctica

PostPosted: Wed Apr 18, 2018 2:54 pm    Post subject: Reply with quote

John,

1) There is no way to get not only production quality but any quality if axes_pen=1,width=1. But i agree my axes_pen=3, width=3 are probably too aggressive for anyone who uses less then 4K monitors. Try =2 and tell if that will look better (but take in mind that there is a bug with the frame width Paul just fixed)

So size=1 is too small for almost anyone but 3 are too large for anyone who use smaller resolutions. Of course with time all monitors will be 4K, 5K 8K, their prices dropped 10 times in last 3 years, i'v heard the first cell phone with 4k screen was just made. But the best solution which will fit everyone would be ( before it is too late and user base will be large) for Paul to consider the fp numbers for axes_pen and line width instead of integer numbers because antialiasing can allow any intermediate numbers like 1.4 and the plot automatically will look much better with line sizes larger then primitive 1 pixel

Though there might be people with low res monitors I strongly insist to not use 1 pixel for default, because no one in the world use that. Everyone who did all got out of business, just look at any packages of scientific graphics for Fortran over last 30 years supplied by such losers. While at the same time the Matlab for example almost killed all, taking lion part of the market share from Fortran. And when you will think why, you will find that the only what Matlab sells (having similar language with Fortran while Fortran is faster and more modern) all others missed is 1) ultimate simplicity 2) stellar graphics. Same was with Apple for example: ultimate simplicity, top parameters and stellar aesthetics. Same with Amazon: ultimate simplicity (one click orders), top convenience, good design. At the end anyone with very low res monitors can decrease line widths but for everyone else first look of the plot has to cause WOW effect (not the feelings that Fortran is the neanderthal's language like right now)

2) If i either decrease the plot size to zero by mouse resizing or minimize the plot it immediately crashes.


Last edited by DanRRight on Wed Apr 18, 2018 3:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 751

PostPosted: Wed Apr 18, 2018 3:24 pm    Post subject: Reply with quote

interesting, different behaviour than me then, are you on Windows 10 ?
_________________
"This is the triumph of folly.
The machine, which knows no rest, ought to remain a tool,
... but instead becomes our master and will swallow up our life and soul"
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 ... 23, 24, 25
Page 25 of 25

 
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