Skip to content
master
Switch branches/tags
Code

Latest commit

* Base version with the new cursor and one example.

* Extended example with more subexamples showing a minimum __init__ call and trouble with the dataaxis parameter

* Added notice for problems occurring when using non biunique plots and dataaxis=y

* Matched docstring such that Sphinx output looks like as for the other widgets. Had to modify default format string therefore.

* Added whats new message

* Code should pass flake8 test now.

* Cursor sticks to plotted line now

* fixed indention

* Added test

* Maybe flake8 test passes now. Had problems with backslashes escaping multiline function calls.

* Moved new text cursor class definition to its example file.

This leaves widgets.py unchanged in comparison to master branch

* Also removed the unittest of the new TextCursor class, as it now is an example

* Fixed linter errors in example sourcefile

* Added reST explanation for new example.

* Built the docs and removed two docstring mistakes.

* Docstring and code format changes

The hint on the missing cursor in example's preview is now a note in the
docstring.
FIxed format of multiline examples of Cursor instantiation

* What's new description now describes a new example instead of a new feature

* Removed what's new note

* Fix typo in docstring

Change suggested by smartlixx

Co-authored-by: Xianxiang Li <smartlixx@gmail.com>

* Unite figure and axes creation

Follows suggestion of timhoffm

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>

* Remove comments on sample data creation

Suggested by timhoffm

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>

* Renamed "lin" to "line"

Suggested by timhoffm

* Unpacking tuple returned by "plot()" now the moment it is returned.

Suggested by timhoffm

* Moved example with non-biunique functions to a new example section

* Referencing the cross hair cursor demo now

* Renamed the new cursor from text_cursor to annotated_cursor

File and class name changed

* Skipping redrawing the cursor now when moving mouse between two plot points

* Remove braces

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Restructured nested if condition

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Another braces removal

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Apply new string format syntax to exception string

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Simplified search for plot datat index matching mouse cursor position

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Fix typo in docstring

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Fix typo in docstring

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Added linefeed in docstring

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Fix typo in docstring

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Renamed setpos to set_position

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Fixed all misspellings of "background"

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Nicer explanation in comment about relating passed color arguments to color of graphical elements

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Fixed bug introduced with f93091e

* Fixed "overwritten" typo in docstrings

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Added linefeeds in docstring

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Fixed "cooridnates" typo

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Shortened comment

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Heavily improve readibility of docstrings

Some stuff rephrased
Fixed typos
Changed default argument for text offset from list to tuple

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Removed unused attribute self.textdata

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

* Fixed linting error

* Added axes title

The title is a ax.set_title("Cursor Tracking [x|y] Position") call

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

Co-authored-by: Joschua Conrad <joschua.conrad@uni-ulm.de>
Co-authored-by: Xianxiang Li <smartlixx@gmail.com>
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
4723f8a

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

PyPi Downloads NUMFocus

DiscourseBadge Gitter GitHubIssues GitTutorial

GitHubActions AzurePipelines AppVeyor Codecov LGTM

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.

Check out our home page for more information.

https://matplotlib.org/_static/readme_preview.png

Matplotlib produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms. Matplotlib can be used in Python scripts, the Python and IPython shell, web application servers, and various graphical user interface toolkits.

Install

For installation instructions and requirements, see INSTALL.rst or the install documentation.

Test

After installation, launch the test suite:

python -m pytest

Read the testing guide for more information and alternatives.

Contribute

You've discovered a bug or something else you want to change - excellent!

You've worked out a way to fix it – even better!

You want to tell us about it – best of all!

Start at the contributing guide!

Contact

Discourse is the discussion forum for general questions and discussions and our recommended starting point.

Our active mailing lists (which are mirrored on Discourse) are:

Gitter is for coordinating development and asking questions directly related to contributing to matplotlib.

Citing Matplotlib

If Matplotlib contributes to a project that leads to publication, please acknowledge this by citing Matplotlib.

A ready-made citation entry is available.