Gsharp in 10 minutesThis document is designed for users who are familiar with graphics packages and want a quick introduction to how Gsharp works. If you require a more thorough introduction please read the Gsharp Tutorial. Reading Your Data
Read more ... Data Structures
Data ProcessingThere are hundreds of functions
for processing your data. Each one works on whole datasets at a time.
e.g. x2 = sin(x) will create an array called x2 containing the
sine of every element in x and You can either enter commands on the command line or use the Gsharp Script Language (GSL) to make an algorithm for reading and processing your data. e.g.
Datasets can be organized into folders. A folder is created like so: create Folder WORK2; and you can change the current folder using scope WORK2; Plotting Your DataEach Gsharp plot is made up of objects. There are ten object types in total - page, viewport, domain, graph, axis, legend, note, arrow, title and logo. Each object belongs to another object. e.g. a title must belong to a viewport. If a viewport is moved or resized then all the objects that belong to that viewport are moved or resized with it. The full hierarchy of objects is as follows: The object toolbar (below the canvas) has icons for each of the objects
t Every object in Gsharp has a number of resources that control how the object should appear. For example the viewport has resources which control its position, its background color and its frame attributes. You can edit the resources using the resource editors. Double click on the viewport and its resource editor will appear. Here you can see that the first diagonal point and the second diagonal
point have already been set. These were set when we dragged out the position
of the viewport using the mouse. If a resource is followed by a button
that looks like this The Hierarchy Browser
When you create a new object you must first select the object that you would like it to belong to. Make sure that your viewport is selected and then create a Title. The title belongs to the selected viewport and will move around with the viewport. The Domain object
Now create a graph inside your domain. Set the desired graph type and
then select the datasets by clicking on the Data tag. Each of the resources
that takes a dataset (X, Y etc. ) is followed by a Saving your workThe graph you have created can be saved using the Gsharp Script Language (GSL). Click on the save button and specify the name of your GSL Script. If you would like to view the GSL commands bring up the ScriptBuilder from the Tools menu and then choose Generate GSL from its Tools menu. The saved script only includes the graphics. If you start Gsharp again you will need to read your data again before opening the GSL script containing your plot. There are several ways to get your data back into Gsharp.
When you want to read your data next time open this master script not your graphics script. Gsharp will then read your data and plot it for you. If you change the plot - save it again in makeAreaPlot.gsl What we haven't coveredGsharp is a very versatile product. GSL can be used to fully configure the interface to your liking and to create new functions for processing or reading your data. It's even possible to design your own application using GSL with your own menus, your own data readers, graphical templates and dialogs. You can use the Gsharp Web Edition to dynamically generate your plots on a web server. There are examples of all these in the example directory. Learning more
|