Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add documentation for mpl_toolkits.axes_grid1.inset_locator #4864
Conversation
tacaswell
added the
needs_review
label
Aug 4, 2015
sargas
changed the title from
Add documentation for mpl_toolkits.axes_grid1 to Add documentation for mpl_toolkits.axes_grid1.inset_locator
Aug 4, 2015
dopplershift
referenced
this pull request
Aug 4, 2015
Merged
[mpl_toolkits] Allow "figure" kwarg for host functions in parasite_axes #4863
|
Docbuild failure, but I don't know what it means: https://api.travis-ci.org/jobs/74123925/log.txt?deansi=true |
|
I generated the docs in py3 on my local machine, it turns out the I moved the class-level docstrings to the |
|
Ok, that makes sense. Don't worry about that usetex test, it is a transient
|
|
Awesome! I have no problem with this sneaking in under the wire for 1.5, but do not have time to review. |
tacaswell
added this to the
proposed next point release
milestone
Aug 5, 2015
|
A question for the other devs... Is there any reason why we continue to have the axes_grid and axes_grid1? From my understanding, axes_grid is "deprecated" and is only kept around for compatibility. Documentation-wise, it looks like only the axes_grid module is actually generated. |
|
I would be |
sargas
referenced
this pull request
Aug 6, 2015
Merged
Document mpl_toolkits.axes_grid1.anchored_artists #4874
|
Has anyone been able to review this? |
|
@leejjoon Can you review this? |
tacaswell
commented on an outdated diff
Nov 5, 2015
tacaswell
commented on the diff
Nov 5, 2015
| def draw(self, renderer): | ||
| raise RuntimeError("No draw method should be called") | ||
| def __call__(self, ax, renderer): | ||
| + self.axes = ax |
sargas
Contributor
|
tacaswell
commented on an outdated diff
Nov 5, 2015
tacaswell
commented on an outdated diff
Nov 5, 2015
| + loc2 : {1, 2, 3, 4}, optional | ||
| + Corner of *bbox2* to draw the line. If None, defaults to *loc1*. | ||
| + Valid values are:: | ||
| + | ||
| + 'upper right' : 1, | ||
| + 'upper left' : 2, | ||
| + 'lower left' : 3, | ||
| + 'lower right' : 4 | ||
| + | ||
| + The kwargs are Patch properties for the line drawn: |
|
|
tacaswell
commented on the diff
Nov 5, 2015
| @@ -276,7 +456,7 @@ def inset_axes(parent_axes, width, height, loc=1, | ||
| width, height, | ||
| loc=loc, | ||
| bbox_transform=bbox_transform, | ||
| - **kwargs) | ||
| + borderpad=borderpad) |
tacaswell
Owner
|
|
Gave this a quick read, looks really good There are a bunch of places where things need to be put under a In the places where |
sargas
added some commits
Jul 30, 2015
|
Thanks for reviewing this. I don't think the I attempted to do the following in
This doesn't quite get the formatting right either (the start of the description is misaligned with the start of the descriptions of the other parameters). The generated HTML has an extra |
|
I think the priority should be that the docs render reasonably even if they are not semantically correct. |
|
Okay. I've also double checked the **kwargs options I removed. |
tacaswell
added a commit
that referenced
this pull request
Dec 16, 2015
|
|
tacaswell |
4573e1e
|
tacaswell
merged commit 4573e1e
into matplotlib:master
Dec 16, 2015
tacaswell
removed the
needs_review
label
Dec 16, 2015
tacaswell
modified the milestone: next major release (2.0), proposed next point release (2.1)
Dec 16, 2015
|
This is what the built docs look like http://matplotlib.org/devdocs/mpl_toolkits/axes_grid/api/inset_locator_api.html |
tacaswell
added a commit
that referenced
this pull request
Dec 16, 2015
|
|
tacaswell |
8677af6
|
|
back-ported to 1.5.x as 8677af6 |
sargas commentedAug 4, 2015
This module has some nice, undocumented (except in narrative form) helpers that has been interesting to figure out.
I made some formatting changes, and some slight API differences:
AnchoredSizeLocatorandAnchoredZoomLocatorboth overrode__call__merely to save the axes (which is unused inAnchoredSizeLocatoranyways). I moved the saving of this value to the__call__of their superclass. No other file in matplotlib uses these classes, and the superclass doesn't look used for anything else online.inset_axesandzoomed_inset_axestake a**kwarg, but the only keyworded argument that would not result in an error isborderpad. I changed the functions to make that clear.I still have
AnchoredLocatorBase(and its subclasses) to document, but I don't understand the code as is - for instance, a required parameteroffsetboxis always unused, and I don't understand why a locator object (something used withAxes.set_axes_locator) would ever have any method except those used by__call__(making the capabilities inherited fromAnchoredOffsetBoxuseless).