I want to plot a diagram like this: http://matplotlib.org/examples/shapes_and_collections/scatter_demo.html

Unfortunately, I have no idea what these diagrams are called and therefore I do not know where to search for an explanation of how they are created.

Does anyone know how they are called and whether they can be created in matplotlib?

closed as off-topic by Fezter, Devdatta Tengshe, PolyGeo Apr 2 '15 at 7:51

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about software development are off-topic here unless they relate directly to Geographical Information Systems, but they can be asked on Stack Overflow." – Fezter, Devdatta Tengshe, PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.


This kind of diagrams are called "scatter plots" (streudiagramm). If you have installed numpy and maplotlib python libraries in your system, you can copy/paste the "simple demo of a scatter plot" in the Python Console and this is the result:

enter image description here

Of course, you can also run the code as script. After, you can modify controllably the code for telling you how it works.


There are many examples of matplotlib with PyQGIS in in GIS SE, look at How to create a x-y scatterplot from attributes in QGIS 2.0?, for example (3D scatter plot).

If you know matplotlib, it is not very difficult to use it in the Python console, as xulnic says, or in a processing script. There also many plugins which use it as the, Contour plugin , or the midvatten plugin for example

In addition to the answer of xulnic some other applications:

Rose diagram

enter image description here

Stereonet diagram (for geologist)

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.