Whatever you will be doing, you will have to define the right thing at the right place. And those Uicontrol can be customized through properties ( Uicontrol properties). You will need to define Figure and components such as Axes if you want graphics or Uicontrol if you want buttons/sliders/etc. Perl The key difference between Scilab and PDL is Perl. This document complements the Quick Start guide, as it highlights the key differences between Scilab and PDL. What you will discover in the next tutorials of this GUI-serie, is that complex GUI are organized as simple graphics. It explains the key differences between Scilab and PDL to help you get going as quickly as possible. And that is very important when you are making your own GUI. Well, in that case you know exactly where you've set your graphics. For more information about the handle customization, you can find Figure properties and Axes properties in dedicated help pages.Īt the end, I still use the plot function. And finally, we use the sca() function to specify on which set of axes we would like to set our plot. SCILAB PLOT FULLHere you can see the full breakdown I was speaking about earlier in this paper. Now, let's try to set up the exact same graphic we did (the automated way) but this time, building it step by step. That is what we can see in the figure editor below with the fully unfolded tree view. Hopefully, there are a limited number of levels (childrens) needed to create such a graphic. Let's grab one of those using the get current axes function gca() or access it via the figure properties.Īgain, what we got is a handle of type "Axes" with many customizable properties and childrens. As you can see, this "Figure" handle has two childrens. And this figure is only the ground component of your graphic. Here is what you got.ĭoing so, you got what we call a handle, with several properties such as figure_size or color_map. Then get the current figure with the gcf() function. To do so, generate the graphic above and keep it open. You can actually try it and explore on your own. Let me unveil what a simple graphic really is deep inside. Well, let me tell you:Īnd, trust me, I went easy on the plot part. What you might not realize is what it actually takes to set it up. Let's take an example:Īs you can see here, you managed to create "complex" graphics easily. It is pretty easy to quickly create graphics for data visualization. Let's start by understanding how graphics are working within SCILAB. This serie of tutorials aims at providing you with the mandatory tools to understand how graphics objects are working in SCILAB and start creating complex applications. SCILAB PLOT SOFTWAREBut let's be honnest, working on GUI in SCILAB might be frustrating for people who hoped to get something by the end of the day. Scilab Enterprises is developing the software Scilab, and offering professional services: Training Support Development. Scilab Code to plot first six Bessel function of the first kind for x0 to x10. This allows you to automate your work and share your applications with colleagues or clients. Bessel functions are J 0 (x), J 1 (x), J 2 (x), J 3 (x), J 4 (x) and J 5 (x). What's cool, is that SCILAB also enables you to create application mixing processing algorithms with a GUI. If you read this, you are already convinced SCILAB is a powerful tool for any kind of data processing and computer science. SCILAB PLOT DRIVERSAll our drivers presently on FileExchange will be updated for Scilab 6 and gathered in a single ATOMS module (then easier to document and maintain).This tutorial is the first of a serie dedicated to Graphical User Interface (GUI) creation with SCILAB. A syntax is implemented to continuously display the live data coming from the multimeter (same low refresh rate ~1Hz).Ģ new Scilab drivers to come soon for new instruments (a furnace, and another popular multimeter). SCILAB PLOT DRIVERSo no problem to get a live plot of received data.Īs well, we have written a Scilab driver for the very popular M38XR multimeter ). The refresh frequency of the powermeter is 1-2 Hz. We do it for practicals in optics: we move a translation actuator step by step (Scilab driver, plugged to port#1), and for each step we read a transmitted signal with an optical powermeter (driver, plugged to port#2). It is perfectly possible to implement such a hardware setup run from a Scilab session that plots live data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |