-
Notifications
You must be signed in to change notification settings - Fork 7
How to update GR.rb
-
Start when a new version of sciapp/gr is released.
-
Send pull request to update homebrew libgr package.
-
Update red-data-tools package if possible.
-
Review file changes in
sciapp/gr
,GR.jl
,python-gr
-
Update
ffi.rb
-
Update
gr.rb
andgr3.rb
.
Ruby's Integer
and Float
are automatically converted to C types: int
, float
, and double
.
You do not need to convert the String
too. This is a feature provided by Fiddle. But, be careful if you want to pass an array or a pointer as an argument.
Arrays are converted to the default type. If the argument type is not the default type, you must convert it manually. You can use GRCommonUtils methods such as int
, float
, double
, and uint
for this purpose.
A convenient inquiry
methods are provided for passing a pointer as an argument. But keep in mind that this is not always perfect. If you need a "pointer of pointers", you have to do it yourself.
-
Write some tests if possible.
-
Leave for a few days.
-
Update the Gem.
User's Guide
Simple, matlab-style API
- Plotting functions
- Plot attributes
- Multiple plots
- Multiple subplots
- Save Plot to a file
- Jupyter Notebook
GR Native functions
For developers