Difference between revisions of "SciFigs: Legend"

From GeopsyWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
A legend is a graphical object that can be inserted in a [[SciFigs: Graphic sheet|graphic sheet]]. A legend is a description of various line, symbol and text attributes used for plotting curves on a [[SciFigs: Graph|Graph]] containing line [[SciFigs: Layer|layers]].
 
A legend is a graphical object that can be inserted in a [[SciFigs: Graphic sheet|graphic sheet]]. A legend is a description of various line, symbol and text attributes used for plotting curves on a [[SciFigs: Graph|Graph]] containing line [[SciFigs: Layer|layers]].
  
== Creating a new legend ==
+
The user has the ability to Import, '''Load'',' or Export, '''Save''', the Legend information from or into a file. This is very useful when one is using command line tools and he wants directly to use a Legend file (.legend).
 +
The example can be used by first downloadinf the [[Media:Legend_page.page|'''Legend_page.page''']] file and then loading it in figue to plot the same legend as in figure.
 +
 
 +
 
 +
= '''Create a legend''' =
 +
 
 +
In a [[SciFigs: Graphic sheet|graphic sheet]] such as [[SciFigs: Figue|figue]], select the menu '''Insert/Legend'''. Alternatively, use the legend toolbar icon [[Image:Legend_icon.png|30px]] or right-click on a blank part of the graphic sheet and access '''Insert/Legend''' through the context menu (useful for Mac users who have no top menu bar when the graphic sheet is embedded in a larger application, e.g. inside geopsy).
 +
 
 +
 
 +
 
 +
= '''Edit a legend''' =
 +
[[Image:SciFigs_legend_menu.png|thumb|right|400px|Editing the properties of a legend]]
 +
 
 +
 
 +
The properties window of the legend box appears by double clicking on the graph corresponding to the legend and then selecting the Legend Tab.
 +
 
 +
The Legend property window includes two sections:
 +
* a Legend box
 +
* a Format box
 +
 
 +
<br style="clear:both"/>
 +
 
 +
==Legend Box==
 +
 
 +
The Legend Graph-Box is used to customize five items:
 +
*[[#Pen| Pen]]
 +
*[[#Symbol | Symbol]]
 +
*[[#Symbol pen |Symbol pen]]*
 +
*[[#Symbol brush| Symbol brush]]
 +
*[[#Text| Text]]
 +
 
 +
These items are described by the following characteristics:
 +
*Color: five ways are offered to choose colors
 +
[[Image:SciFigs_Legend_SelectColor1.png|100px|Default Select Color]]
 +
[[Image:SciFigs_Legend_SelectColor2.png|100px|Default Select Color]]
 +
[[Image:SciFigs_Legend_SelectColor3.png|100px|Default Select Color]]
 +
[[Image:SciFigs_Legend_SelectColor4.png|100px|Default Select Color]]
 +
[[Image:SciFigs_Legend_SelectColor5.png|100px|Default Select Color]]
 +
<br style="clear: both"/>
 +
*Width
 +
*Style
 +
*Type
 +
*Size
 +
*Text
 +
 
  
In a [[SciFigs: Graphic sheet|graphic sheet]] such as [[SciFigs: Figue|figue]], select menu ''Insert/Legend''. Alternatively, use the toolbar icon for legend [[Image:Legend_icon.png|20px]] or right-click on a blank part of the graphic sheet and access all menu items through the context menu (useful for Mac users who have no top menu bar when the graphic sheet is embedded in a larger application, e.g. inside geopsy). Open this [[Media:Legend_page.page|page file]] in figue to plot the same legend as in figure.
 
  
== Editing and Exporting/Importing a legend ==
 
[[Image:SciFigs_legend_menu.png|thumb|right|500px|Editing the properties of a legend]]
 
===Legend Box===
 
By double clicking on the graph of the legend you get the properties window of the legend box.
 
By selecting the Legend Tab and through the Legend Graph-Box the user can than specify the properties of [[#Pen| Pen]], [[#Symbol | Symbol]], [[#Symbol pen |Symbol pen]], [[#Symbol brush| Symbol brush]], and the [[#Text| Text]] to describe different lines.
 
The user has the ability to Import, '''Load'',' or Export, '''Save''', the Legend information from or into a file. This is very useful when one is using command line tools and he wants directly to use a Legend file (.legend).
 
  
 
Additionally one can decide to use colors as these is a result of an '''Interpole''' [[Image:SciFigs_legend_Interpole.png|100px]] between two colors from the list of colors already used. Also an automatic way to directly use color [[Image:SciFigs_legend_Interpole_color.png|100px]] or  [[Image:SciFigs_legend_Interpole_gray.png|100px]]  gray scale by pressing the [[Image:SciFigs_legend_Interpole_color_button.png|50px]] or the [[Image:SciFigs_legend_Interpole_gray_button.png|50px]] Button in '''Colors''' frame. Finally the user has the possibility to use different colors for the Pen, Symbol Pen, Symbol Brush and Text for the same curve. In order to do that one should un-check the box ''One color''  below the '''Colors''' frame. The user can increase or decrease the number of entries in the Legend Graph when he is using the Legend from the [[SciFigs: Graphic sheet|graphic sheet]] in  [[SciFigs: Figue|figue]] if he adds a legend box. In any other case it is not possible to change the number of entries.
 
Additionally one can decide to use colors as these is a result of an '''Interpole''' [[Image:SciFigs_legend_Interpole.png|100px]] between two colors from the list of colors already used. Also an automatic way to directly use color [[Image:SciFigs_legend_Interpole_color.png|100px]] or  [[Image:SciFigs_legend_Interpole_gray.png|100px]]  gray scale by pressing the [[Image:SciFigs_legend_Interpole_color_button.png|50px]] or the [[Image:SciFigs_legend_Interpole_gray_button.png|50px]] Button in '''Colors''' frame. Finally the user has the possibility to use different colors for the Pen, Symbol Pen, Symbol Brush and Text for the same curve. In order to do that one should un-check the box ''One color''  below the '''Colors''' frame. The user can increase or decrease the number of entries in the Legend Graph when he is using the Legend from the [[SciFigs: Graphic sheet|graphic sheet]] in  [[SciFigs: Figue|figue]] if he adds a legend box. In any other case it is not possible to change the number of entries.
  
 
<br style="clear: both"/>
 
<br style="clear: both"/>
==== Pen ====  
+
==== Pen ====
 
[[Image:SciFigs_Legend_SelectColor.png|thumb|left|300px|Select Color]]
 
[[Image:SciFigs_Legend_SelectColor.png|thumb|left|300px|Select Color]]
 
You can select the Pen '''Color''' (shown on the left side figure), the '''Width''' [[Image:Legend_menu-width_line.png|40px]] and the '''Style''' [[Image:Legend_menu-select_line.png|20px]], as Continous, Dashed or Dotted line. Especially for the Color Selection the user can  select one of the Basic colors already defined or create his own color and add it to the Custom Colors by either pressing the appropriate button [[Image:Legend_AddCustomColors.png|150px]] or drag & drop it to the list of Custom Colors.
 
You can select the Pen '''Color''' (shown on the left side figure), the '''Width''' [[Image:Legend_menu-width_line.png|40px]] and the '''Style''' [[Image:Legend_menu-select_line.png|20px]], as Continous, Dashed or Dotted line. Especially for the Color Selection the user can  select one of the Basic colors already defined or create his own color and add it to the Custom Colors by either pressing the appropriate button [[Image:Legend_AddCustomColors.png|150px]] or drag & drop it to the list of Custom Colors.
Line 39: Line 76:
 
The user can define the Text to be used at the legend box describing each curve. It is also possible to define the color of the text.
 
The user can define the Text to be used at the legend box describing each curve. It is also possible to define the color of the text.
  
=== Format Box ===
+
== Format Box ==
 
[[Image:SciFigs_legend_FormatBox.png|thumb|left|400px|Formating the Text of a legend]]
 
[[Image:SciFigs_legend_FormatBox.png|thumb|left|400px|Formating the Text of a legend]]
 
The user can set the Text of the Legend Title, setup auto-resizing of the Box based on the size of the text and define the font as you wish by pressing '''Change''' [[Image:SciFigs_Select_Font.png|right|150px]]. FInally one can define the '''Line size''' of each curve, but in that case enable Auto-resize to text as well so that the information you have in the Box might not be presented correctly.
 
The user can set the Text of the Legend Title, setup auto-resizing of the Box based on the size of the text and define the font as you wish by pressing '''Change''' [[Image:SciFigs_Select_Font.png|right|150px]]. FInally one can define the '''Line size''' of each curve, but in that case enable Auto-resize to text as well so that the information you have in the Box might not be presented correctly.

Revision as of 15:54, 20 February 2013

A legend

A legend is a graphical object that can be inserted in a graphic sheet. A legend is a description of various line, symbol and text attributes used for plotting curves on a Graph containing line layers.

The user has the ability to Import, Load,' or Export, Save', the Legend information from or into a file. This is very useful when one is using command line tools and he wants directly to use a Legend file (.legend). The example can be used by first downloadinf the Legend_page.page file and then loading it in figue to plot the same legend as in figure.


Create a legend

In a graphic sheet such as figue, select the menu Insert/Legend. Alternatively, use the legend toolbar icon Legend icon.png or right-click on a blank part of the graphic sheet and access Insert/Legend through the context menu (useful for Mac users who have no top menu bar when the graphic sheet is embedded in a larger application, e.g. inside geopsy).


Edit a legend

Editing the properties of a legend


The properties window of the legend box appears by double clicking on the graph corresponding to the legend and then selecting the Legend Tab.

The Legend property window includes two sections:

  • a Legend box
  • a Format box


Legend Box

The Legend Graph-Box is used to customize five items:

These items are described by the following characteristics:

  • Color: five ways are offered to choose colors

Default Select Color Default Select Color Default Select Color Default Select Color Default Select Color

  • Width
  • Style
  • Type
  • Size
  • Text



Additionally one can decide to use colors as these is a result of an Interpole SciFigs legend Interpole.png between two colors from the list of colors already used. Also an automatic way to directly use color SciFigs legend Interpole color.png or SciFigs legend Interpole gray.png gray scale by pressing the SciFigs legend Interpole color button.png or the SciFigs legend Interpole gray button.png Button in Colors frame. Finally the user has the possibility to use different colors for the Pen, Symbol Pen, Symbol Brush and Text for the same curve. In order to do that one should un-check the box One color below the Colors frame. The user can increase or decrease the number of entries in the Legend Graph when he is using the Legend from the graphic sheet in figue if he adds a legend box. In any other case it is not possible to change the number of entries.


Pen

Select Color

You can select the Pen Color (shown on the left side figure), the Width Legend menu-width line.png and the Style Legend menu-select line.png, as Continous, Dashed or Dotted line. Especially for the Color Selection the user can select one of the Basic colors already defined or create his own color and add it to the Custom Colors by either pressing the appropriate button Legend AddCustomColors.png or drag & drop it to the list of Custom Colors.


Symbol

The user can define here the Type of Symbol SymbolType.png that could be an x, a rectangular, a circle, a triangle, a diamond or a star. Additionally one can specify and the Size of the Symbol.

Symbol pen

The user can define here the parameters for the pen that creates the Symbol to be used, as the Color, the Width and the Style.

Symbol brush

The user can define the Color and the Style SymbolBrushStyle.png to be used.

Text

The user can define the Text to be used at the legend box describing each curve. It is also possible to define the color of the text.

Format Box

Formating the Text of a legend

The user can set the Text of the Legend Title, setup auto-resizing of the Box based on the size of the text and define the font as you wish by pressing Change

SciFigs Select Font.png

. FInally one can define the Line size of each curve, but in that case enable Auto-resize to text as well so that the information you have in the Box might not be presented correctly.


Legend file format

As described above it is possible to Load or Save the legend information in a file for later use. The file is in XML format.