Skip to content

Commit b408620

Browse files
committed
Rename data-prototype to mpl-data-containers
1 parent 27e212a commit b408620

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+113
-109
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ doc/_static/constrained_layout*.png
103103

104104
# setuptools_scm collateral
105105

106-
data_prototype/_version.py
106+
mpl_data_containers/_version.py

CONTRIBUTING.rst

+10-12
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Types of Contributions
1313
Report Bugs
1414
~~~~~~~~~~~
1515

16-
Report bugs at https://github.com/tacaswell/data_prototype/issues.
16+
Report bugs at https://github.com/matplotlib/data-prototype/issues.
1717

1818
If you are reporting a bug, please include:
1919

@@ -35,14 +35,14 @@ is open to whoever wants to implement it.
3535
Write Documentation
3636
~~~~~~~~~~~~~~~~~~~
3737

38-
data_prototype could always use more documentation, whether
39-
as part of the official data_prototype docs, in docstrings,
38+
mpl_data_containers could always use more documentation, whether
39+
as part of the official mpl_data_containers docs, in docstrings,
4040
or even on the web in blog posts, articles, and such.
4141

4242
Submit Feedback
4343
~~~~~~~~~~~~~~~
4444

45-
The best way to send feedback is to file an issue at https://github.com/tacaswell/data_prototype/issues.
45+
The best way to send feedback is to file an issue at https://github.com/matplotlib/mpl_data_containers/issues.
4646

4747
If you are proposing a feature:
4848

@@ -54,17 +54,17 @@ If you are proposing a feature:
5454
Get Started!
5555
------------
5656

57-
Ready to contribute? Here's how to set up `data_prototype` for local development.
57+
Ready to contribute? Here's how to set up `mpl_data_containers` for local development.
5858

59-
1. Fork the `data_prototype` repo on GitHub.
59+
1. Fork the `mpl_data_containers` repo on GitHub.
6060
2. Clone your fork locally::
6161

62-
$ git clone [email protected]:your_name_here/data_prototype.git
62+
$ git clone [email protected]:your_name_here/mpl_data_containers.git
6363

6464
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
6565

66-
$ mkvirtualenv data_prototype
67-
$ cd data_prototype/
66+
$ mkvirtualenv mpl_data_containers
67+
$ cd mpl_data_containers/
6868
$ python setup.py develop
6969

7070
4. Create a branch for local development::
@@ -98,7 +98,5 @@ Before you submit a pull request, check that it meets these guidelines:
9898
2. If the pull request adds functionality, the docs should be updated. Put
9999
your new functionality into a function with a docstring, and add the
100100
feature to the list in README.rst.
101-
3. The pull request should work for Python 2.7, 3.3, 3.4, 3.5 and for PyPy. Check
102-
https://travis-ci.org/tacaswell/data_prototype/pull_requests
103-
and make sure that the tests pass for all supported Python versions.
101+
3. The pull request should work for all supported python versions.
104102

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ recursive-exclude * *.py[co]
99

1010
recursive-include docs *.rst conf.py Makefile make.bat
1111

12-
include data_prototype/_version.py
12+
include mpl_data_containers/_version.py
1313

1414
# If including data files in the package, add them like:
1515
# include path/to/data_file

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
==============
2-
data_prototype
2+
mpl_data_containers
33
==============
44

55
Experimental code for the upcoming Matplotlib data refactor.

docs/source/api/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ API
77
Containers
88
==========
99

10-
.. automodule:: data_prototype.containers
10+
.. automodule:: mpl_data_containers.containers
1111
:members:
1212
:undoc-members:
1313

@@ -16,10 +16,10 @@ Containers
1616
Wrappers
1717
========
1818

19-
.. automodule:: data_prototype.wrappers
19+
.. automodule:: mpl_data_containers.wrappers
2020
:members:
2121
:undoc-members:
2222

23-
.. automodule:: data_prototype.patches
23+
.. automodule:: mpl_data_containers.patches
2424
:members:
2525
:undoc-members:

docs/source/conf.py

+19-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
#
4-
# data_prototype documentation build configuration file, created by
4+
# mpl_data_containers documentation build configuration file, created by
55
# sphinx-quickstart on Thu Jun 28 12:35:56 2018.
66
#
77
# This file is execfile()d with the current directory set to its
@@ -23,7 +23,7 @@
2323
# sys.path.insert(0, os.path.abspath('.'))
2424
from pathlib import Path
2525

26-
import data_prototype
26+
import mpl_data_containers
2727

2828
# are we running circle CI?
2929
CIRCLECI = "CIRCLECI" in os.environ
@@ -72,7 +72,7 @@
7272
],
7373
"filename_pattern": "^((?!sgskip).)*$",
7474
"gallery_dirs": ["gallery"],
75-
"doc_module": ("data_prototype",),
75+
"doc_module": ("mpl_data_containers",),
7676
"reference_url": {
7777
"matplotlib": None,
7878
},
@@ -104,7 +104,7 @@
104104
master_doc = "index"
105105

106106
# General information about the project.
107-
project = "data_prototype"
107+
project = "mpl_data_containers"
108108
copyright = "2022, Thomas A Caswell"
109109
author = "Thomas A Caswell"
110110

@@ -114,9 +114,9 @@
114114
#
115115

116116
# The short X.Y version.
117-
version = data_prototype.__version__
117+
version = mpl_data_containers.__version__
118118
# The full version, including alpha/beta/rc tags.
119-
release = data_prototype.__version__
119+
release = mpl_data_containers.__version__
120120

121121
# The language for content autogenerated by Sphinx. Refer to documentation
122122
# for a list of supported languages.
@@ -179,7 +179,7 @@
179179
# -- Options for HTMLHelp output ------------------------------------------
180180

181181
# Output file base name for HTML help builder.
182-
htmlhelp_basename = "data_prototype"
182+
htmlhelp_basename = "mpl_data_containers"
183183

184184

185185
# -- Options for LaTeX output ---------------------------------------------
@@ -205,8 +205,8 @@
205205
latex_documents = [
206206
(
207207
master_doc,
208-
"data_prototype.tex",
209-
"data_prototype Documentation",
208+
"mpl_data_containers.tex",
209+
"mpl_data_containers Documentation",
210210
"Contributors",
211211
"manual",
212212
),
@@ -218,7 +218,13 @@
218218
# One entry per manual page. List of tuples
219219
# (source start file, name, description, authors, manual section).
220220
man_pages = [
221-
(master_doc, "data_prototype", "data_prototype Documentation", [author], 1)
221+
(
222+
master_doc,
223+
"mpl_data_containers",
224+
"mpl_data_containers Documentation",
225+
[author],
226+
1,
227+
)
222228
]
223229

224230

@@ -230,10 +236,10 @@
230236
texinfo_documents = [
231237
(
232238
master_doc,
233-
"data_prototype",
234-
"data_prototype Documentation",
239+
"mpl_data_containers",
240+
"mpl_data_containers Documentation",
235241
author,
236-
"data_prototype",
242+
"mpl_data_containers",
237243
"Experimental code for the upcoming Matplotlib data refactor.",
238244
"Miscellaneous",
239245
),

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
data_prototype Documentation
6+
mpl_data_containers Documentation
77
============================
88

99
This is prototype development for the next generation of data structures for

docs/source/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Installation
44

55
At the command line::
66

7-
$ pip install git+https://github.com/tacaswell/data-prototype.git@main
7+
$ pip install git+https://github.com/matplotlib/data-prototype.git@main

examples/2Dfunc.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import matplotlib.pyplot as plt
1111
import numpy as np
1212

13-
from data_prototype.artist import CompatibilityAxes
14-
from data_prototype.image import Image
15-
from data_prototype.containers import FuncContainer
13+
from mpl_data_containers.artist import CompatibilityAxes
14+
from mpl_data_containers.image import Image
15+
from mpl_data_containers.containers import FuncContainer
1616

1717
from matplotlib.colors import Normalize
1818

examples/animation.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
import matplotlib.pyplot as plt
1818
from matplotlib.animation import FuncAnimation
1919

20-
from data_prototype.conversion_edge import Graph
21-
from data_prototype.description import Desc
20+
from mpl_data_containers.conversion_edge import Graph
21+
from mpl_data_containers.description import Desc
2222

2323

24-
from data_prototype.artist import CompatibilityAxes
25-
from data_prototype.line import Line
26-
from data_prototype.text import Text
27-
from data_prototype.conversion_edge import FuncEdge
24+
from mpl_data_containers.artist import CompatibilityAxes
25+
from mpl_data_containers.line import Line
26+
from mpl_data_containers.text import Text
27+
from mpl_data_containers.conversion_edge import FuncEdge
2828

2929

3030
class SinOfTime:

examples/data_frame.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import numpy as np
1212
import pandas as pd
1313

14-
from data_prototype.artist import CompatibilityArtist as CA
15-
from data_prototype.line import Line
16-
from data_prototype.containers import DataFrameContainer
14+
from mpl_data_containers.artist import CompatibilityArtist as CA
15+
from mpl_data_containers.line import Line
16+
from mpl_data_containers.containers import DataFrameContainer
1717

1818
th = np.linspace(0, 4 * np.pi, 256)
1919

examples/errorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import numpy as np
1212

1313

14-
from data_prototype.wrappers import ErrorbarWrapper
15-
from data_prototype.containers import ArrayContainer
14+
from mpl_data_containers.wrappers import ErrorbarWrapper
15+
from mpl_data_containers.containers import ArrayContainer
1616

1717
x = np.arange(10)
1818
y = x**2

examples/first.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import numpy as np
1212
import pandas as pd
1313

14-
from data_prototype.artist import CompatibilityAxes
15-
from data_prototype.line import Line
16-
from data_prototype.containers import FuncContainer, SeriesContainer
14+
from mpl_data_containers.artist import CompatibilityAxes
15+
from mpl_data_containers.line import Line
16+
from mpl_data_containers.containers import FuncContainer, SeriesContainer
1717

1818

1919
fc = FuncContainer({"x": (("N",), lambda x: x), "y": (("N",), lambda x: np.sin(1 / x))})

examples/hist.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import matplotlib.pyplot as plt
1111
import numpy as np
1212

13-
from data_prototype.wrappers import StepWrapper
14-
from data_prototype.containers import HistContainer
13+
from mpl_data_containers.wrappers import StepWrapper
14+
from mpl_data_containers.containers import HistContainer
1515

1616
hc = HistContainer(
1717
np.concatenate([np.random.randn(5000), 0.1 * np.random.randn(500) + 5]), 25

examples/lissajous.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
import matplotlib.markers as mmarkers
2020
from matplotlib.animation import FuncAnimation
2121

22-
from data_prototype.conversion_edge import Graph
23-
from data_prototype.description import Desc
22+
from mpl_data_containers.conversion_edge import Graph
23+
from mpl_data_containers.description import Desc
2424

25-
from data_prototype.wrappers import PathCollectionWrapper
25+
from mpl_data_containers.wrappers import PathCollectionWrapper
2626

2727

2828
class Lissajous:

examples/mandelbrot.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
import matplotlib.pyplot as plt
1414
import numpy as np
1515

16-
from data_prototype.artist import CompatibilityAxes
17-
from data_prototype.image import Image
18-
from data_prototype.containers import FuncContainer
16+
from mpl_data_containers.artist import CompatibilityAxes
17+
from mpl_data_containers.image import Image
18+
from mpl_data_containers.containers import FuncContainer
1919

2020
from matplotlib.colors import Normalize
2121

examples/mapped.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
from matplotlib.colors import Normalize
1414

15-
from data_prototype.artist import CompatibilityAxes
16-
from data_prototype.line import Line
17-
from data_prototype.containers import ArrayContainer
18-
from data_prototype.description import Desc
19-
from data_prototype.conversion_edge import FuncEdge
20-
from data_prototype.text import Text
15+
from mpl_data_containers.artist import CompatibilityAxes
16+
from mpl_data_containers.line import Line
17+
from mpl_data_containers.containers import ArrayContainer
18+
from mpl_data_containers.description import Desc
19+
from mpl_data_containers.conversion_edge import FuncEdge
20+
from mpl_data_containers.text import Text
2121

2222

2323
cmap = plt.colormaps["viridis"]

examples/mulivariate_cmap.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
import matplotlib.pyplot as plt
1212
import numpy as np
1313

14-
from data_prototype.image import Image
15-
from data_prototype.artist import CompatibilityAxes
16-
from data_prototype.description import Desc
17-
from data_prototype.containers import FuncContainer
18-
from data_prototype.conversion_edge import FuncEdge
14+
from mpl_data_containers.image import Image
15+
from mpl_data_containers.artist import CompatibilityAxes
16+
from mpl_data_containers.description import Desc
17+
from mpl_data_containers.containers import FuncContainer
18+
from mpl_data_containers.conversion_edge import FuncEdge
1919

2020
from matplotlib.colors import hsv_to_rgb
2121

examples/new_patch.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import matplotlib.pyplot as plt
1313

1414

15-
from data_prototype.artist import CompatibilityAxes
16-
from data_prototype.patches import Patch
17-
from data_prototype.containers import ArrayContainer
15+
from mpl_data_containers.artist import CompatibilityAxes
16+
from mpl_data_containers.patches import Patch
17+
from mpl_data_containers.containers import ArrayContainer
1818

1919
from matplotlib.path import Path
2020

examples/scatter_with_custom_axes.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
=========================================
55
66
This is a quick comparison between the current Matplotlib `scatter` and
7-
the version in :file:`data_prototype/axes.py`, which uses data containers
7+
the version in :file:`mpl_data_containers/axes.py`, which uses data containers
88
and a conversion pipeline.
99
1010
This is here to show what does work and what does not work with the current
1111
implementation of container-based artist drawing.
1212
"""
1313

14-
import data_prototype.axes # side-effect registers projection # noqa
14+
import mpl_data_containers.axes # side-effect registers projection # noqa
1515

1616
import matplotlib.pyplot as plt
1717

1818
fig = plt.figure()
19-
newstyle = fig.add_subplot(2, 1, 1, projection="data-prototype")
19+
newstyle = fig.add_subplot(2, 1, 1, projection="mpl-data-containers")
2020
oldstyle = fig.add_subplot(2, 1, 2)
2121

2222
newstyle.scatter([0, 1, 2], [2, 5, 1])

0 commit comments

Comments
 (0)