Search found 35 matches

by rnbas
Jul 27, 2019 0:23
Forum: General
Topic: How to use PLplot library
Replies: 1
Views: 3203

How to use PLplot library

I came across PLplot library and it looks impressive with bindings available for many languages but not Freebasic:
http://plplot.sourceforge.net/

How can one use this library from Freebasic?
by rnbas
Jul 27, 2019 0:18
Forum: General
Topic: How to draw simple scatterplot with GSL
Replies: 8
Views: 5059

Re: How to draw simple scatterplot with GSL

To use gnuplot, I think I will have to follow following steps from Freebasic program:

1. create a file with data
2. create a gnuplot script file
3. use shell command to run gnuplot <scriptname>

Any suggestions?
by rnbas
Jul 26, 2019 13:39
Forum: General
Topic: How to draw simple scatterplot with GSL
Replies: 8
Views: 5059

Re: How to draw simple scatterplot with GSL

srvaldez wrote:I am not aware of GSL having any plotting functions, the only examples I have seen use gnuplot to do the plotting.

I have provided link to official page on graphics with GSL: http://www.nongnu.org/gsl-shell/doc/graphics.html
by rnbas
Jul 26, 2019 12:41
Forum: Beginners
Topic: Where to put bi files
Replies: 2
Views: 4743

Re: Where to put bi files

Yes, it worked with "fltk/fltk-c.bi".
Thanks.
by rnbas
Jul 26, 2019 12:38
Forum: General
Topic: Simple Barchart with Dislin error
Replies: 5
Views: 4038

Re: Simple Barchart with Dislin error

Yes, it worked after installing deb file downloaded from https://www.mps.mpg.de/dislin/linux-i568-64-bit
by rnbas
Jul 26, 2019 3:59
Forum: Beginners
Topic: What is full form of DIM
Replies: 1
Views: 4452

What is full form of DIM

I know DIM is for declaring variables, as: DIM as integer i = 10 But why is DIM so called? What is its full form? Is it an abbreviation or an acronym? I could not find its full form on searching internet. 'Dimension' comes to mind but it does not fit. The closest I can think it may stand for 'Declar...
by rnbas
Jul 26, 2019 3:47
Forum: General
Topic: How to draw simple scatterplot with GSL
Replies: 8
Views: 5059

How to draw simple scatterplot with GSL

I see that GSL (Gnu Scientific Library) has graphic capabilities: http://www.nongnu.org/gsl-shell/doc/graphics.html However, I am not able to find how to draw a simple scatterplot. I have following points: DIM as integer xvals(...) = {1,2,3,4} DIM as integer yvals(...) = {10,12,30,14} Hence, points ...
by rnbas
Jul 26, 2019 3:13
Forum: General
Topic: Simple Barchart with Dislin error
Replies: 5
Views: 4038

Re: Simple Barchart with Dislin error

Yes, it work and the error goes away. Some explanation on how it works will be very helpful. However, now I am getting following error: ld: cannot find -ldislnc I am working on Debian Stable Linux. I have downloaded dislin and unzipped it. There are following library files in the folder: -rw-r--r-- ...
by rnbas
Jul 26, 2019 0:41
Forum: General
Topic: Simple Barchart with Dislin error
Replies: 5
Views: 4038

Simple Barchart with Dislin error

I am trying to use Dislin ( http://www2.mps.mpg.de/dislin/ and https://www.mps.mpg.de/dislin ) to plot a simple bar chart with following code: #include once "dislin.bi" METAFL ("CONS") DISINI NAME ("X-axis", "X") NAME ("Y-axis", "Y") TITLIN...
by rnbas
Jul 25, 2019 18:01
Forum: General
Topic: Return pointer to an array from a function
Replies: 13
Views: 5738

Return pointer to an array from a function

I want a function to create an array and return the pointer to it. The received pointer should be used to print all items in the array. I tried: function returnPtr() as integer dim outarr(...) as double = {10.1,20.2,30.3} return @outarr end function dim newarr(...) as double = returnPtr for i as int...
by rnbas
Jul 25, 2019 15:45
Forum: General
Topic: Replace string throughout code
Replies: 7
Views: 4188

Re: Replace string throughout code

Can you precise how you want to use "int " in your source code? (a value of a string variable, or a string literal, or a symbol name, ...) A small example of what you want before and after pre-processing would help us understand your request. I want to understand macros so that I can use ...
by rnbas
Jul 25, 2019 15:18
Forum: Beginners
Topic: Advantages of different GUI libraries
Replies: 18
Views: 10446

Re: Advantages of different GUI libraries

I still do not have instruction to install FBGui.
Pl let me know the steps needed for its installation.
by rnbas
Jul 25, 2019 13:37
Forum: General
Topic: Add fltk library in executable
Replies: 1
Views: 3056

Add fltk library in executable

I am trying Fltk library for GUI programs and it is working all right. However, the executable created still needs fltk library libfltk-c-1.3.3-64.so installed in /usr/lib Is it possible to include libfltk-c-1.3.3-64.so in executable itself? I tried using -l option: fbc -l libfltk-c-1.3.3-64.so mysr...
by rnbas
Jul 25, 2019 9:25
Forum: General
Topic: Replace string throughout code
Replies: 7
Views: 4188

Replace string throughout code

I want to have a string replaced throughout my code during compilation process:

from: "int "
to: "integer "

I think I may need some macro or some #ifdef etc - I do not have any idea about these.
Is it possible?
Thanks for your help.
by rnbas
Jul 25, 2019 6:35
Forum: Beginners
Topic: Difference between fltk and fltk-c?
Replies: 3
Views: 4713

Difference between fltk and fltk-c?

What is difference between fltk and fltk-c?
Both are available at: viewtopic.php?f=14&t=24547
Thanks for your answer.

Go to advanced search