3dplot example - difference windows and linux

22 views
Skip to first unread message

Loo X

unread,
Jun 20, 2020, 1:59:37 PM6/20/20
to dislin-users
Hi,

I translated the 3dplot widget example to PureBasic and it works well under Windows. Under Ubuntu the first call to myplot in the main routine creates an extra window with the plot. If you close it the widget windows shows up with empty draw area. If you use the arrows for perspective the plot area is drawed right. Any known issues here ? 

Greetings
Otto

PS:
Is the Dislin book filled with examples and HowTos or is it "just" a summary of DisHlp and DisMan ?

Helmut Michels

unread,
Jun 20, 2020, 4:06:05 PM6/20/20
to dislin-users
Hi Otto,

I think that you have tried to plot to the draw widget before is was created. Normally, the widget tree is realized and shown on the screen in wgfin. This is a little bit
different to Windows, where each widget is created directly by the widget call. You can realize a widget tree before wgfin with the routine reawgt. So, the following
pseudo code will work:

                                ......
                                readwgt ()            // creates the widgets
                                plot ()                   // your plotting code
                                wgfin ()                 // contains the event loop

You can find all information in the book also on the Dislin web site https://www.dislin.de. The book is just a another form.

With best regards,

Helmut

Loo X

unread,
Jun 21, 2020, 6:06:36 AM6/21/20
to dislin...@googlegroups.com
Thanks. Works. Perfect.

--
You received this message because you are subscribed to the Google Groups "dislin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dislin-users/4c32bd1f-6b72-4bf7-bf66-758c64adaeeao%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages