Difference between revisions of "PlotPanel/de"

From Lazarus wiki
Jump to navigationJump to search
 
Line 1: Line 1:
 
==Plotpanel==
 
==Plotpanel==
PlotPanel is a component for Lazarus to replace (more or less) the TChart component.
+
PlotPanel ist eine Komponente für Lazarus, um die TChart Komponente zu ersetzen (mehr oder weniger).
With some modification it can also be used with Kylix, Delphi 5, 6 or 7.
+
Mit einigen Modifikationen kann sie auch genutzt werden mit Kylix, Delphi 5, 6 oder 7.
  
With PlotPanel you can draw line- , dot- and bar-graphs. Animated graphs are also possible.
+
Mit PlotPanel können sie Linien-, Punkt- und Balkendiagramme zeichen. Animierte Diagramme sind ebenfalls möglich.
  
This software is presented as is, without any written warranty. So use the
+
Diese Software wird ohne Gewähr überreicht, ohne jegliche schriftliche Garantie. Benutzen sie die Software daher auf eigenes Risiko.
software at your own risk.
 
  
 
===Screenshot===
 
===Screenshot===
Line 12: Line 11:
  
 
==Installation==
 
==Installation==
To Install the PlotPanel component in Lazarus you have to do the following:
+
Um die PlotPanel Komponente in Lazarus zu installieren müssen sie folgendes tun:
* Download the PlotPanelpackage (plotpanel.zip) from: http://members.home.nl/mvanwesten/lazarus.html or from [http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=181065 Lazarus CCR SourceForge site].
+
* Downloaden sie das PlotPanelpackage (plotpanel.zip) von: http://members.home.nl/mvanwesten/lazarus.html oder von der [http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=181065 Lazarus CCR SourceForge Seite].
* Unzip plotpanel.zip in a directory of your choice
+
* Entpacken sie plotpanel.zip in ein Verzeichnis ihrer Wahl.
* Start Lazarus
+
* Starten sie Lazarus
* Perform the necessairy actions to intall the package
+
* Führen sie die notwendigen Schritte aus, um das Package zu installieren (siehe [[Install Packages/de|Installation von Packages]]).
  
 
After you have done that all, there must be a new Tab in the componet palet with the name "Extra".
 
After you have done that all, there must be a new Tab in the componet palet with the name "Extra".

Revision as of 21:59, 24 February 2006

Plotpanel

PlotPanel ist eine Komponente für Lazarus, um die TChart Komponente zu ersetzen (mehr oder weniger). Mit einigen Modifikationen kann sie auch genutzt werden mit Kylix, Delphi 5, 6 oder 7.

Mit PlotPanel können sie Linien-, Punkt- und Balkendiagramme zeichen. Animierte Diagramme sind ebenfalls möglich.

Diese Software wird ohne Gewähr überreicht, ohne jegliche schriftliche Garantie. Benutzen sie die Software daher auf eigenes Risiko.

Screenshot

File:plotpanel2.png

Installation

Um die PlotPanel Komponente in Lazarus zu installieren müssen sie folgendes tun:

After you have done that all, there must be a new Tab in the componet palet with the name "Extra". You can use the Plotpanel now

Run the PlotPanelDemo to explore the features of PlotPanel. N.B. You can try PlotPanel without installing the component by running TryPlotPanel!

Beschreibung der PlotPanel Komponente

This is a very rude description of the component. See the examples for an explanation of how to use the component. The PlotPanel component is derived from the TCustomPanel-component. To this Panel plotting capabilities are added.

Eigenschaften geerbt von TCustomPanel

Align, Anchors, Autosize, BevelInner / Outer / Width
Borderspacing, BorderStyle, Borderwidth
Color is the color of the border of the plot
Constraints, Cursor, Dragmode, Enabled
Font is the font of the title of the plot
Height, HelpContext, HelpKeyword, HelpType, Hint
Left, Name, ParenColor, Parentfont, ParentShowHint
PopupMenu, ShowHint, TabOrder, TabStop
Tag, Top, Visible, Width

Die folgenden Eigenschaften wurden hinzugefügt

BackColor This is the background color of the plotting area
GridColor When you make this the same as Backcolor, the grid is invisible
LayerOption For easy plotting of a single layer this can be set to False. It is not possible to set this to True directly (see methods)
Margin The width of the border of the plot in pixels
PlotMode Three plotmodes are possible: pmBar, pmLine and pmDot
PlotPen Properties of the plotting pen. If LayerOption is False, then all sub-properties can be set. If LayerOption is True, then information about the plotting pen is transferred via the LayerOptions method (methods)
Title The Title is at the top center of the plot and uses the Font property
PlotBMP This is a bitmap holding the whole graph (see demo for its use)


Die X-Achse Eigenschaften:

XMarks Wenn True, dann hat die X-Achse Markierungen
XMarksFont Font genutzt für die XMarks
XMarksInterval Abstand zwischen zwei Linien im Gitter (gilt nur für lineare Skalen)
XMax Maximaler Wert von X der sichtbar ist
XMin Minimaler Wert von X der sichtbar ist
XScaleLog Wenn TRUE dann ist die Skala logarithmisch (der Abstand wird von der Komponente bestimmt)


Für die Y-Achse gilt das selbe.


Methoden:

AddXY(X,Y:Extended) With this method you can add points (or lines) to the plot Example for i:= -10 to 10 do PlotPanel1.AddXY(i,i*i) This plots a parbola .The line is plotted with the PlotPen properties Note you can only plot a single layer.

AddXY(X,Y:Extended, Color:Tcolor,Layer:Integer) With this method it is possible to plot up to 8 lines in different colors, plotmodes and penwidths (see LayerOptions how to set linewidth and plotmodes)

LayerOptions(Layer:Integer;PlotMode:TPlotMode;PenWidth:Integer) Every Layer can use a different Plotmode and PenWidth When you call this method LayerOPtion will be set TRUE. When you want to use a single Layer again you have to set LayerOption False! Autoscale(Layer:Integer) With this method you can adjust the size of the plot automaticly

ClearData Clears the data on the plot.

ConvertS2W(x,y: Extended; var WX,WY : Extended) Converts the screen-coordinates in X,Y to the real coordinates WX,WY. When X and Y are out of bounds, the function returns False, otherwise True

Freeze(Boolean) When Freeze(True) is executed all plotting is done on a invisible bitmap. After a Freeze(False) the whole plot is displayed. This produces flicker-free animations.

HideLayer(Layer:Integer) Use this to hide a single layer in the plot

UnHideLayer(Layer:Integer) Shows the hidden layer again N.B. When you add points to a hidden layer, the old layer is deleted and the new points are the only points in this layer!

Paint Repaints the whole Graph (is done automaticly by the system when necessairy)


Marien van Westen