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 

Search found 271 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Animation control - use of %dl
Kenneth_Smith

Replies: 1
Views: 28

PostForum: ClearWin+   Posted: Thu Jun 04, 2020 9:54 am   Subject: Animation control - use of %dl
I often use %pl or %gr to develop simple animations. These generally run for a fixed period at a fixed speed after the user invokes the start callback. I have been thinking that it would be useful f ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Sun May 31, 2020 6:01 pm   Subject:
Marting,

The really important thing about using binary direct access is getting the record length correct. This demonstrates the idea.

Ken


implicit none
integer, parameter :: sp ...
  Topic: Colours for contouring
Kenneth_Smith

Replies: 2
Views: 69

PostForum: ClearWin+   Posted: Sun May 31, 2020 12:24 pm   Subject:
There is a discussion of this here which gives some "nice" colour ramps, which might assist you.

http://paulbourke.net/miscellaneous/colourspace/

Ken
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Sat May 30, 2020 1:24 pm   Subject:
Another thought.

Have you tried exporting the x y arrays that define the border in the call to %pl to a text file (immediately before the %pl call), and then importing that text file into Excel a ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Fri May 29, 2020 3:55 pm   Subject:
Part 3

integer function plot()
integer, save :: iw
iw = CREATE_GRAPHICS_REGION@(handle_internal_gr,gw,gh )
if ( iw .ne. 1) STOP 'Failed to create internal ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Fri May 29, 2020 3:53 pm   Subject:
Part 2
integer function pl_cb()
character(len=30) cb_reason
integer i,j,k, x1p, y1p, jj, kk
real(kind=dp) x1r,y1r, x1rr, y1rr, dx, dy
character(len=30) output_st ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Fri May 29, 2020 3:50 pm   Subject:
PART 1

module example
use clrwin
implicit none
integer, parameter :: sp=kind(1.0), dp=kind(1.d0), gw = 1000, gh = 800, N=50
integer :: handle_internal_gr = 1, ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Fri May 29, 2020 3:49 pm   Subject:
Good to see you are making progress.

The combination of checkboxes and two graphics regions was not one I have used or tested before.

Yes there is a problem with symbol = 12 and symbol = 13 when ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Mon May 25, 2020 9:24 am   Subject:
Martin,

A few ideas to try:

Examine the integer value returned by COPY_GRAPHICS_REGION@. It should return 1 for success.

Check that the dimensions of the %pl and the internal file you are co ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Fri May 22, 2020 11:56 am   Subject:
Part 2.


integer function pl_cb()
character(len=30) cb_reason
integer i,j,k, x1p, y1p, jj, kk
real(kind=dp) x1r,y1r, x1rr, y1rr
character(len=30) output_strin ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Fri May 22, 2020 11:55 am   Subject:
Or if you want to retain the concept of there being a grid around the selected points, something like this perhaps.


module example
use clrwin
implicit none
integer, parameter :: dp= ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Fri May 22, 2020 10:25 am   Subject:
Part 2


integer function pl_cb()
character(len=30) cb_reason
integer i,j,k, x1p, y1p
real(kind=dp) x1r,y1r
character(len=30) output_string(4)
cb_ ...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Fri May 22, 2020 10:24 am   Subject:
Do you really need plot the grid points and hence require to pass the large arrays with the grid points to %pl?

In this example there are just two 2 points to define the full extent of the grid.
...
  Topic: %PL - some issues/questions
Kenneth_Smith

Replies: 83
Views: 2318

PostForum: ClearWin+   Posted: Thu May 21, 2020 2:21 pm   Subject:
This demonstrates the process I described in my previous post. The nearest grid point to the mouse is highlighted and some information related to this is displayed on the screen.

module example
u ...
  Topic: Problem with rotate_font@
Kenneth_Smith

Replies: 4
Views: 176

PostForum: Support   Posted: Thu May 21, 2020 12:10 pm   Subject:
Paul,

I discovered by accident that a call to rotate_font@(0.d0) immediately, before the call to draw_characters@ fixes the problem. Without this, the text is initially drawn in the incorrect pla ...
 
Page 1 of 19 Goto page 1, 2, 3 ... 17, 18, 19  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group