Cerius2 Modeling Environment |
This section explains
This section contains information on:
The basics of starting Cerius2 and using its interface are demonstrated in Introducing Cerius2 and described in The Cerius2 Interface.
Graphs in Cerius2 are produced as output from calculations in various other application modules. How to set up and run the appropriate calculations are discussed in the documentation for the relevant application modules.
The tools for handling graphs are accessed from one of the decks of cards in the main Visualizer control panel. To access the Graphs module, click the deck selector (see also Access to application modules) and choose TABLES & GRAPHS from the list that appears. Then click the title of the GRAPHS card to bring it to the front. The deck of cards menu area should now look like this
Please see the on-screen help for details on the functioning of each control on the GRAPHS card.
Why read this section
Creating graphs
Ordinarily, graphs are created and displayed automatically as the result of some calculation in a Cerius2 application module. If you are dealing with such graphs, you do not need to read this section.
This section includes information on:
Related information
Controlling which one(s) of several plots (which are held in computer memory during a Cerius2 session) are displayed in the Cerius2 Graphs window is discussed under Selecting and displaying graphs.
How to access the Graphs module is described under Accessing the tools.
Starting a new, empty graph
Accessing the tools
Select the Gallery/Manager menu item from the GRAPHS card to access the Gallery Manager control panel.
To create a new graph, check a check box in the Display column, to the left of the blank line below the last name, if any, in the list of graph names in the Gallery Manager control panel.
Please see the on-screen help for details on the functioning of each control in the Gallery Manager control panel.
Specifying the type of graph
When you create a new graph, you need to specify whether the graph should be an x-y graph, a 2D Cartesian graph, or a 2D polar graph. (For automatically created graphs, the type of data determines what type of graph is used to display it.)
An x-y data set is an ordered series of independent coordinates in a plane. The data points in a set may be connected by lines or displayed in styles such as histogram, points, or delta lines.
If you already have the Gallery Manager control panel open (Accessing the tools), click the Graph Manager... pushbutton in the Gallery Manager control panel to access the Graph Manager control panel.
Alternatively, select the Graph/Manager menu item from the GRAPHS card to access the Graph Manager control panel.
Set the Type popup to the desired graph type.
Please see the on-screen help for details on the functioning of each control in the Graph Manager control panel.
Selecting data to plot
Any Cerius2 data set(s) currently in the computer memory can be selected and plotted in a new graph. However, the data set must be compatible with the type (see Specifying the type of graph) of graph specified. In addition, only Cerius2 data sets can be plotted in newly created Cerius2 graphs.
Loading graphs containing data sets is discussed in Loading graphs. Generating data for graphs is discussed in the documentation for the relevant application modules.
If you already have the Gallery Manager control panel open (Accessing the tools), click the Graph Manager... pushbutton in the Gallery Manager control panel to access the Graph Manager control panel.
Alternatively, select the Graph/Manager menu item from the GRAPHS card to access the Graph Manager control panel.
To add a data set to the new graph, check the Display check box(es) next to the names of the data sets that you want to display in the currently editable graph. (The name of this graph appears near the top of the Graph Manager control panel.) You can only select data sets that are of the appropriate type (Specifying the type of graph).
You may need to scale the graph (Changing graph axes and scale) for the data set(s) to appear in it. |
Loading graphs
Graphs that have been created and saved to a file (Saving graphs) can be loaded into a subsequent Cerius2 session, to compare results or to print the graphs.
Once a graph file has been loaded, each graph and its data sets can be manipulated in exactly the same way as those newly created by Cerius2 (see, for example, Displaying and editing graphs). Old and new graphs can be displayed side by side in the Cerius2 Graphs window, or old and new data sets can be displayed together in a single graph. However, Insight and Cerius2 data cannot be mixed in one graph.
To load graphs saved from Cerius2, select the File/Load Graphs menu item from the GRAPHS card to access the Load Graphs control panel.
Using the file browser in the control panel to navigate the directory structure is fairly intuitive. The procedure is described under Loading model structure files.
If the name of the file you want to load does not end in .grf (Cerius2) or .tbl (Insight), change the name in the filename text entry box as desired (see File formats).
For Cerius2 graphs, loading the graph also loads its included data sets.
Please see the on-screen help for details on the functioning of each control in the Load Graphs and Import TBL File control panels.
Because all Cerius2 graphs are saved in the .grf format, most graphs loaded in are also in this format. However, the Cerius2 graph system recognizes and correctly loads graphs in the .xy and .con formats used by CERIUS prior to version 3.1.
Why read this section
Displaying and editing graphs
This section includes information on:
Related information
How to print the contents of the Cerius2 Graphs window is explained under Printing models and graphs.
How to access the Graphs module is described under Accessing the tools. How to load graphs from files is described under Loading graphs.
Selecting and displaying graphs
To display or edit graphs, you need to select them.
Select the Gallery/Manager menu item from the GRAPHS card to access the Gallery Manager control panel. (The graph window is also referred to as the gallery.)
To display or hide particular graphs, check or uncheck the appropriate check boxes in the Display column to the left of the list of graph names in the Gallery Manager control panel.
You can allow Cerius2 to set the graph window width and height automatically by setting both the Gallery Width and Gallery Height popups to AUTO.
You can find the coordinates of any point on any type of graph by pressing <Ctrl> on the keyboard and left-clicking a point in the graph. The information is displayed in the text window. |
To enable graphs to be edited, check or uncheck the appropriate check boxes in the Edit column to the right of the list of graph names in the Gallery Manager control panel.
Please see the on-screen help for details on the functioning of each control in the Gallery Manager control panel.
Selecting which data sets to display and edit
If you do not want all data sets in a selected graph to displayed, or if you want them to be displayed in different styles, you need to select the data set.
How to select a graph for display and editing is discussed under Selecting and displaying graphs.
If you already have the Gallery Manager control panel open (Accessing the tools), click the Graph Manager... pushbutton in the Gallery Manager control panel to access the Graph Manager control panel.
Alternatively, select the Graph/Manager menu item from the GRAPHS card to access the Graph Manager control panel.
To display or hide particular data sets, check or uncheck the appropriate check boxes in the Display column to the left of the list of data set names in the Graph Manager control panel.
Please see the on-screen help for details on the functioning of each control in the Graph Manager control panel.
Labeling and annotating graphs
You can change labels for graph axes and data-set keys and enter text for a graph title. You can also specify whether to display the axis labels, the title (above the graph), the color-code key to the data sets, the axis lines and numbers, or lines indicating cells (data-set boundaries) in 2D graphs that contain periodically repeated data.
Selecting graphs (Selecting and displaying graphs) and data sets (Selecting which data sets to display and edit) for editing are discussed above. Specifying immediate or delayed updates of the graph display is presented under Selecting graphs to display.
To change the text of data-set keys, select the Data/Plotting Attributes menu item from the GRAPHS card to access the Plotting Attributes control panel. Alternatively, click the Plotting Attributes... pushbutton in the Graph Manager control panel to access the Plotting Attributes control panel.
To change the text of the x- or y -axis label, enter the text in the x Axis Label or y Axis Label entry boxes in the Graph Annotation control panel.
To display or hide axes, axis labels, the title, all the data-set keys, or cell indications, set the appropriate Annotation Options popups in the Graph Annotation control panel. (A --> popup label means that several graphs are selected for editing and that the annotation options differ for those graphs, or that no graph is selected.)
Please see the on-screen help for details on the functioning of each control in the Graph Annotation and Plotting Attributes control panels.
Changing graph axes and scale
You can scale selected graphs in several ways, to aid in viewing their data. For example, you can change the ranges of the x and y axes, scroll along an axis, and change the proportions of a graph.
Selecting graphs (Selecting and displaying graphs) and data sets (Selecting which data sets to display and edit) for editing are discussed above. Specifying immediate or delayed updates of the graph display is presented under Selecting graphs to display.
To shift only selected data set(s) along the y axis, select the Data/Plotting Attributes menu item from the GRAPHS card to access the Plotting Attributes control panel. Alternatively, click the Plotting Attributes... pushbutton in the Graph Manager control panel to access the Plotting Attributes control panel.
The x- and y-axis ranges can be changed for x-y and 2D Cartesian graphs. The angle between the axes can be changed for 2D Cartesian graphs.
To set the minimum and maximum displayed angles in 2D polar graphs, use the Min Angle and Max Angle entry boxes in the Graph Scaling control panel. The angles are defined clockwise (in degrees) from north (up).
To shift a curve or other representation of a data set up or down the y axis of an x-y graph, enter a value in the Y Offset entry box of the Plotting Attributes control panel. This does not change the actual data points.
X-y graphs can be scrolled along either axis.
The proportions (rectangular or square) of all types graphs can be changed. In addition, the x and y axes of x-y graphs can be expanded or contracted (zoomed, see Expanding or shrinking an axis).
To change the proportions of the Cerius2 Graphs window and any graph(s) it contains, grab a corner of the window with the cursor and drag it. Changing the graph window's width and height (Accommodating graphs within the graph window) also affects the proportions of the displayed graphs.
Alternatively, you can set the window proportions by entering a number in the Aspect ratio entry box in the Gallery Manager control panel.
To zoom in on a specific part of the displayed graph, hold down <Alt> and the middle mouse button and drag out a rectangle over the desired part of the graph.
Additional information
Please see the on-screen help for details on the functioning of each control in the control panels mentioned in this section. Mouse functions and keyboard shortcuts are summarized in Mouse and Keyboard Actions.
Changing plotting style and color
You can change features of the graph appearance such as style and color. For 2D graphs, you can also set whether data values are differentiated by lines of constant value (contours) or by spots or areas of color and also specify how colors are applied.
Selecting graphs (Selecting and displaying graphs) and data sets (Selecting which data sets to display and edit) for editing are discussed above. Specifying immediate or delayed updates of the graph display is presented under Selecting graphs to display.
You can also edit the color ranges (see Color ranges) that are used to color-code values shown in graphs.
Select the Data/Plotting Attributes menu item from the GRAPHS card to access the Plotting Attributes control panel. Alternatively, click the Plotting Attributes... pushbutton in the Graph Manager control panel to access the Plotting Attributes control panel. The controls available in this control panel depend on the type of graph you have selected for editing.
To change the plot style used for selected data sets in x-y graphs, set the Style popup.
To change the style (contour lines, continuous shading, or delta) used to differentiate ranges of values in 2D Cartesian and 2D polar graphs, set the Style popup.
For 2D Cartesian and 2D polar graphs, as well as x-y-z graphs, you can specify:
Please see the on-screen help for details on the functioning of each control in the Plotting Attributes control panel.
Why read this section
Managing graphs
You may be running an application that produces many graphs. However, you can, for example, control how new graphs are added to the graphing system and remove graphs from the gallery manager.
This section includes information on:
Related information
Controlling which one(s) of several plots (which are held in computer memory during a Cerius2 session) are displayed in the Cerius2 Graphs window is discussed under Selecting and displaying graphs.
Saving preferences is discussed under Using saved sessions as preferences settings.
How to access the Graphs module is described under Accessing the tools.
Controlling default display format
When a graph is created by a Cerius2 application module, the "best" graph axes, annotations, and plot attributes are set automatically. When a graph is loaded from file, the format that was saved with the file is used. However, you can set your own preferences.
For example, in doing a series of Rietveld refinements, you may be most interested in a particular data range. After the graph from the first refinement appears, you can zoom in on the desired data range and then set these graph axes as your preferences. When graphs that are output from subsequent refinement are sent to the graph window, the graph axes remain in your region of interest and do not revert to showing the entire data set.
By default, when a graph file is loaded, it uses the same axis scales, types of annotations, and other settings that were in effect when the file was saved. However, you can override some of these settings before loading the graph file.
Select the Gallery/Expert Functions menu item from the GRAPHS card to access the Graphs Expert Functions control panel. Alternatively, click the Expert Functions... pushbutton in the Gallery Manager control panel to access the Graphs Expert Functions control panel.
To retain current graph format settings in future graphs (in the current Cerius2 session), after the first graph is output from an application module, format it as desired (see Displaying and editing graphs). For example, display only the "interesting" data points by scrolling along the x and/or y axes (Scrolling a graph) and/or by expanding or contracting one or both axes (Expanding or shrinking an axis), then make sure that the Axis Scaling popup in the Graph Scaling control panel is set to FIXED.
Please see the on-screen help for details on the functioning of each control in the Graphs Expert Functions control panel.
Preventing replacement of old graphs
Some Cerius2 modules can produce a series of similar graphs, overwriting the previous graph with the new one. In addition, when you load a graph from file, it usually replaces those displayed in the graph window.
For example, a graph of energy vs. minimization step can be produced by the Minimizer module each time a minimization is run; and in the Rietveld module, each refinement produces a new diffraction data set. The graph and data set(s) from the preceding run are lost when this happens.
As another example, when a graph file is loaded, the graphs in the file usually replace those currently shown in the graph window (although the previous graphs and their data sets are still present in memory). However, you can load a graph file without displaying its graph(s) immediately.
Select the Gallery/Expert Functions menu item from the GRAPHS card to access the Graphs Expert Functions control panel. Alternatively, click the Expert Functions... pushbutton in the Gallery Manager control panel to access the Graphs Expert Functions control panel.
After the first graph is output from an application module, set the Data Placement popup in the Graphs Expert Functions control panel to ADDITIONAL GRAPH.
After the first graph is output from an application module, set the Data Placement popup in the Graphs Expert Functions control panel to COMBINE WITH EXISTING.
Please see the on-screen help for details on the functioning of each control in the Graphs Expert Functions control panel.
Removing graphs and data from a Cerius2 session
You can remove all graphs and their data sets from the graph window and computer memory, or you can remove all except those that are currently displayed.
You can completely reinitialize Cerius2 by starting a new session (Starting a new session).
Selecting graphs (Selecting and displaying graphs) and data sets (Selecting which data sets to display and edit) for display are discussed above.
Select the Gallery/Expert Functions menu item from the GRAPHS card to access the Graphs Expert Functions control panel. Alternatively, click the Expert Functions... pushbutton in the Gallery Manager control panel to access the Graphs Expert Functions control panel.
First make sure that all graphs (Selecting and displaying graphs) and data sets (Selecting which data sets to display and edit) that you want to keep are currently displayed in the Cerius2 Graphs window.
To remove all undisplayed graphs and data sets, click the CLEAN pushbutton in the Graphs Expert Functions control panel.
To delete all graphs and their data sets from both display and memory, click the Reset menu item on the GRAPHS card.
Please see the on-screen help for details on the functioning of each control in the Graphs Expert Functions control panel.
Saving graphs
Saving graphs produced by Cerius2 modules enables you to keep a record of your results. Saved graphs can be loaded back into a Cerius2 session (Loading graphs) for printing or for comparison with other graphs.
Unless a graph and its desired data set(s) are actually displayed in the graph window, the graph is not saved, even if it is currently in computer memory. |
Creating your own directories or subdirectories is described under Making custom directories.
To save graphs from the current Cerius2 session, select the File/Save Graphs menu item from the GRAPHS card to access the Save Graphs control panel.
Once you have located the directory in which you want to store your graph, click the SAVE pushbutton. (Use of the file selection list box and other file selector controls to navigate the directory structure is presented in detail under Finding model file(s).)
Please see the on-screen help for details on the functioning of each control in the Save Graphs control panel.