Search found 1273 matches

by badidea
May 19, 2019 19:33
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 14
Views: 458

Re: Creating (scientific) plots via gnuplot

...and the whole thing doesn't match DIN 461 I did not know that the Germans even standardized data plots :-) We should stop polluting the thread from badidea No problem for me. Always good to know alternatives. But I don't want to spend to much time fiddling with graph layout details, so that is w...
by badidea
May 17, 2019 18:48
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 14
Views: 458

Re: Creating (scientific) plots via gnuplot

You are allowed a little chuckle badidea, my windows 10 has finally packed in and I am now using Linux (Red hat) Was it you who said "I am too old to linux"? I got hold of gnuplot from the repository (Yum), but I don't have cairo or png or z. I have never used Red hat, but I would expect ...
by badidea
May 16, 2019 20:41
Forum: General
Topic: using gnuplot in Windows
Replies: 12
Views: 252

Re: using gnuplot in Windows

Same behavior here as on macOS using shell. With exec and run, I never get a plot window.
by badidea
May 16, 2019 20:10
Forum: General
Topic: using gnuplot in Windows
Replies: 12
Views: 252

Re: using gnuplot in Windows

Nice, I got all examples working on linux as well, by changing terminal windows to x11 or qt (looking better). However, - terminal x11 does not support the color command it seems. - terminal qt does not support the color and background command it seems. The live plot by Carlos Herrera works as well,...
by badidea
May 16, 2019 17:53
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 14
Views: 458

Re: Creating (scientific) plots via gnuplot

thank you badidea :-) I also like Carlos Herrera's suggestion <I apologize, badidea for spamming your thread, I deleted the offending part> I am not quickly offended, curious now what it was. This is also the first time for me trying gnuplot. I will study your parallel topic ( using gnuplot in Wind...
by badidea
May 15, 2019 22:10
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 14
Views: 458

Creating (scientific) plots via gnuplot

I was looking for a way to make nice data plots in FreeBASIC. I decided to try via calling gnuplot (http://www.gnuplot.info/). Although still work in process, it is working on my linux laptop, currently only via 64-bit FBC (some issue with zlib and libpng on 32-bit). The program steps: 1. Write some...
by badidea
May 13, 2019 21:04
Forum: General
Topic: Explicit contructor needed for string in UDT?
Replies: 2
Views: 95

Explicit contructor needed for string in UDT?

Just curious. Why is this not allowed? type font_type dim as string face dim as integer size end type dim as font_type f = type("arial", 18) print f.face, f.size Results in: testString.bas(6) error 98: No matching overloaded function, FONT_TYPE.constructor() in 'dim as font_type f = type(&...
by badidea
May 09, 2019 21:47
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 557

Re: Problem writing 8GB array to disk

I Did some tests on my linux laptop with 8 GB memory. With the code below and freebasic 64-bit, I can write 9 GB (> 8 GB) at once. With freebasic 32-bit: 1 GB: OK 2 GB: Fail, Put returns error 3 GB: Fail, Put returns error 4 GB: 0 byte file, no error 5 GB: 1 GB file, no error 6 GB: Fail, Put returns...
by badidea
May 09, 2019 16:53
Forum: Community Discussion
Topic: When will we have a new challenge :)
Replies: 7
Views: 522

Re: When will we have a new challenge :)

I don't understand, I see each question posted on the forum here as a challenge. Some don't interest me, some are not for my OS, some are too hard for me, some are answered before me, but there remain enough to look into. In addition, I set my own challenges now and then.
by badidea
May 08, 2019 23:34
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 314

Re: Displaying data on screen

If the systems have a graphical screen, a gui toolkit like fltk may be easier. Making all these text based interfaces is a lot of work.
by badidea
May 08, 2019 22:57
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 314

Re: Displaying data on screen

An option for question 2. Keys "Page up", "page down", "home", "end" left as an exercise for the reader. #include "string.bi" enum H_ALIGN H_ALIGN_LEFT H_ALIGN_RIGHT end enum sub printAt(x as integer, y as integer, text as wstring, align as H_ALIGN) ...
by badidea
May 08, 2019 21:53
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 314

Re: Displaying data on screen

dodicat wrote:That is ultra neat Badidea.
And getting the £ sign to show properly also.

Thanks, works with the (3-wide) € sign as well, but it seems that you guys at the other side of the North Sea don't have to worry about that anytime soon.
by badidea
May 08, 2019 20:38
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 314

Re: Displaying data on screen

I might have discovered a bug in Freebasic. OK: priceStr = format(10 ^ (rnd * 5), "$0.00") Not OK: priceStr = format(10 ^ (rnd * 5), "£0.00") Edit: Not a bug, but unwanted behaviour. Solved by conversion to wstring: #include "string.bi" e...
by badidea
May 08, 2019 20:17
Forum: General
Topic: Displaying data on screen
Replies: 17
Views: 314

Re: Displaying data on screen

1) like so? #include "string.bi" enum H_ALIGN H_ALIGN_LEFT H_ALIGN_RIGHT end enum sub printAt(x as integer, y as integer, text as string, align as H_ALIGN) if align = H_ALIGN_RIGHT then x -= len(text) locate y, x print text; end sub dim as integer xOffset = 30, yOffset = 5 dim as integer x...
by badidea
May 07, 2019 20:54
Forum: General
Topic: Fun with lists
Replies: 4
Views: 208

Re: Fun with lists

First post updated. Simple list much simpler now.
(no trees yet)

Go to advanced search