Get field statistics with Statist/QGIS: различия между версиями

Материал из GIS-Lab
Перейти к навигации Перейти к поиску
(Новая страница: «{{Статья|Опубликована|statist-eng}} {{Аннотация|QGIS statistics plugin description.}} The goal of Statist is to provide some basic sta…»)
 
Нет описания правки
 
(не показаны 4 промежуточные версии этого же участника)
Строка 86: Строка 86:
=== Contacts ===
=== Contacts ===


If you want report a bug, make suggestion or have a question about the plugin, contact the [mailto:alexander.bruy@gmail.com developer] (more [http://gis-lab.info/contacts.html contacts]). Also you can file ticket in [http://hub.qgis.org/projects/statist bugtracker].
If you want report a bug or want make suggestion — use [http://hub.qgis.org/projects/statist bugtracker].
 
=== Links ===
 
* [http://gis-lab.info/qa/qgis-install-plugin.html Установка модулей расширения в QGIS]
* [http://gis-lab.info/docs/qgis/ Документация по QGIS]

Текущая версия от 08:03, 29 июля 2012

Эта страница опубликована в основном списке статей сайта
по адресу http://gis-lab.info/qa/statist-eng.html


QGIS statistics plugin description.

The goal of Statist is to provide some basic statistics in text and graphical (frequency distribution histogram) form for the selected field of the vector layer. Both numeric (integer, real, date) and text (string) fields are supported. You can work with the whole layer or only with selected records.

Installation notes

You can get this plugin from official repository.

The plugin is designed for QGIS version 1.0 and higher. It also depends on matplotlib — Python 2D plotting library. If you want to use this plugin you need to install matplotlib first. If there is no matplotlib in your system, you'll see error message on QGIS startup.

For those who use OSGeo4W online installer obtaining and installing matplotlib very simple. Matplotlib package available through under Libraries. In other case you can download it from project home page (http://matplotlib.sourceforge.net) and install manually.

You can obtain sources from our SVN:

svn co http://svn.gis-lab.info/statist statist

How does it work

After the plugin installation and startup by clicking button

Statist-12.png

main window will appear:

Statist-eng-01.png

В окне присутстсвуют такие элементы:

  1. layer selection. Only vector layers are listed
  2. fields selection. By default only numeric fields listed there, but you can use checkbox 3 to switch to the text fields
  3. switch between numeric and text fields (this changes contents of 2)
  4. statistics output area
  5. histogram area
  6. navigation toolbar, see Navifation chapter

Statistics computation begins immediately after user selects a field from the list, the progress of this operation is showed with progressbar. After computation plugin window will look like this

Statist-eng-02.png

Some controls change their state and some new controls appear:

  1. "Copy" button. Copy statistics output to clipboard
  2. fields "Xmin", "Xmax" and button "Refresh" allow you change limits of X axis, so you will have more detailed view of some interval. To do this enter appropriate values in the field and then press "Refresh" button
  3. show/hide plot grid (see screenshoot above)
  4. switch between bar histogram or linear plot representations of your data (see screenshot above)
Statist-eng-03.png

Navigation

Most of the above explanations are from the matplotlib manual (chapter 4 Interactive navigation).

Navigation toolbar is located below the plot area.

Statist-04.png

You can use it to navigate through the figure. Here is a description of each of these buttons.

Statist-05.png Home. Similar to the web-browser Home buttom. It returns you to the first, default view of your data. Use Pan/Zoom and Zoom-to-rectangle to define new views.
Statist-06.png Back. Similar to the web-browser Back button. Used to navigate back between previously defined views. Have no meaning unless you have already navigate somewhere else using the pan and/or zoom buttons. This is analogous to trying to click Back in your web-browser before visiting a new page — nothing happens.
Statist-07.png Forward. Similar to the web-browser Forward button. Used to navigate forward between previously defined views. Have no meaning unless you have already navigate somewhere else using the pan and/or zoom buttons.
Statist-08.png Pan/Zoom. This button has two modes: pan and zoom. Click the toolbar button to activate panning and zooming, then put your mouse somewhere over an axes.

Press the left mouse button and hold it to pan the figure, dragging it to a new position. When you release it, the data under the point where you pressed will be moved to the point where you released.
Press the right mouse button to zoom, dragging it to a new position. The X axis will be zoomed in proportionate to the rightward movement and zoomed out proportionate to the leftward movement. Ditto for the Y axis and up/down motions.

Statist-09.png Zoom-to-rectangle. Click this toolbar button to activate this mode. Put your mouse somewhere over and axes and press the left mouse button. Drag the mouse while holding the button to a new location and release. The axes view limits will be zoomed to the rectangle you have defined.

There is also an experimental "zoom out to rectangle" in this mode with the right button, which will place your entire axes in the region defined by the zoom out rectangle.

Statist-10.png Subplot-configuration. Use this to configure the parameters of the subplot: the left, right, top, bottom space, space between the columns and space between the rows. In Statist this button enabled but you don't need to click on it. There are no subplots, so there is nothing to configure. Later I'll completely remove this button.
Statist-11.png Save. Click this button to launch a file save dialog. You can save plot in following formats: PNG, PS, EPS, SVG and PDF.

Contacts

If you want report a bug or want make suggestion — use bugtracker.

Links