Added rcount/ccount to plot_surface()#7164
Conversation
|
Slightly concerned about making the API too complicated. |
|
Perhaps better as a single "max_gridsize" kwarg? |
|
Here is my rationale for my API decision. The rest of the Next, I dislike the idea of overloading the current rstride/cstride arguments, which has been suggested by others. The names of the arguments have very specific and clear meaning, and so they would be difficult to conceptually overload. Besides, what would I overload it with? String representation of ints? That would be awkward and tedious. So, that means that not only are rstride/cstride are going to stay, but that new arguments will be needed for any new specification. Given the orthogonality of rstride/cstride, it makes sense that the new arguments would also be orthogonal (so, have two arguments instead of just one). It also makes it simple for managing precedence if both or neither the stride and the new argument are specified. So, all that is left is the nature of the new arguments. I like my choice of "maximum count" instead of "exact count" because I can't guarantee that the array could be split into that many equally spaced pieces. Remember, I still have to plug into the cstride/rstride usage internally, so the samples must be equally spaced. So, now the user is free to use either a stride or a count, which is conceptually similar to I am not entirely sold on the need to apply a "classic mode" as fully as I do here. I could be convinced to only apply it if neither stride nor count is given. |
|
|
||
| rstride = kwargs.pop('rstride', 10) | ||
| cstride = kwargs.pop('cstride', 10) | ||
| rcount = kwargs.pop('rcount', 50) |
There was a problem hiding this comment.
slight preference to raise if both count and stride are provided.
|
@WeatherGod I am convinced and am ok with this going in as-is. Slight preference for raising if both stride and count are given which would make it a bit easier to document and no need to have the classic compatibility mode. |
|
I agree that passing both flags is an error which shouldn't pass silently. |
|
Agreed. I'll see if I can find time tonight to fix that. On Mon, Oct 3, 2016 at 3:30 PM, Ryan May notifications@github.com wrote:
|
|
Needs a rebase now. |
ee782b1 to
2f75b39
Compare
|
Just realized something... I should add this feature to |
|
Of course, the question then becomes: if we do add it to |
|
I am 👍 on adding it to Failures look real and related to this PR. |
|
Yes, I forgot to update the tests when I made it such that you can't On Thu, Nov 10, 2016 at 10:03 PM, Thomas A Caswell <notifications@github.com
|
|
bump @WeatherGod |
9c9b72f to
f124032
Compare
lib/mpl_toolkits/mplot3d/axes3d.py
Outdated
| if both stride and count are used. | ||
|
|
||
| ` The `rcount` and `ccount` kwargs supersedes `rstride` and | ||
| `cstride`for default sampling method for wireframe plotting. |
There was a problem hiding this comment.
Missing space after backtick causing problem?
lib/mpl_toolkits/mplot3d/axes3d.py
Outdated
| (see next section) are provided. | ||
|
|
||
| The `rcount` and `ccount` kwargs supersedes `rstride` and | ||
| `cstride`for default sampling method for surface plotting. |
There was a problem hiding this comment.
Missing space after backtick.
|
The single backticks should be double backticks in many cases; they aren't references, but code. |
|
Perhaps, but that'll be more suited for a different PR. Right now, I am just following the current conventions in this file. |
|
@WeatherGod Why did you regenerate the pdf and svg test images? |
tacaswell
left a comment
There was a problem hiding this comment.
Modulo removing the regeneration of the 4 test images.
dopplershift
left a comment
There was a problem hiding this comment.
Code changes look fine to me. Curious about the need to regenerate the images, since they seem to be visually identical (at least the SVGs).
|
Uhm, good question... the triaging tool told me they were different, but
now I am wondering if it was accidentally picking up "failed" files from an
earlier test run... Will look into it tonight.
…On Mon, Dec 12, 2016 at 3:27 PM, Ryan May ***@***.***> wrote:
***@***.**** approved this pull request.
Code changes look fine to me. Curious about the need to regenerate the
images, since they seem to be visually identical (at least the SVGs).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7164 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-CuGvXJlvIFUtiVrT_ffQBbY9tmDks5rHa4WgaJpZM4KEX1M>
.
|
efa3ec9 to
58d3de2
Compare
|
yeah, looks like those images were accidentally regenerated. I brought back what was in master for them and re-ran my tests and they passed. So I committed those images back in, and then did a squash commit to eliminate the change out of the history. The tests should be done shortly. |
... providing an alternative to rstride/cstride
Still needs a whats_new.rst entry.