Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:14
    tfpf synchronize #23034
  • 14:45
    raphaelquast commented #22543
  • 14:11
    ben-briscoe commented #23083
  • 14:06
    majidebraa commented #23086
  • 13:56
    majidebraa commented #23086
  • 13:44
    majidebraa commented #23086
  • 13:41
    majidebraa commented #23086
  • 13:33
    jklymak closed #23086
  • 13:33
    jklymak commented #23086
  • 12:22
    timhoffm commented #23086
  • 12:18
    anntzer commented #22171
  • 12:01
    anntzer commented #23034
  • 11:51
    anntzer opened #23087
  • 11:51
    anntzer labeled #23087
  • 11:50
    majidebraa commented #23086
  • 11:49
    majidebraa commented #23086
  • 11:38
    anntzer commented #22745
  • 11:36
    anntzer commented #22745
  • 11:21
    eudoxos commented #9346
  • 10:46

    timhoffm on main

    MNT: Deprecate date_ticker_fact… (compare)

Jody Klymak
@jklymak
I did asv.run but it didn't pick up the new file. Trying asv dev
Is there somewhere I need to tell it what files to look in? I made a new benchmarks/dates.py file...
Elliott Sales de Andrade
@QuLogic
The function should be named time_*, but I don't think there are any requirements for file names
Jody Klymak
@jklymak
Hmm, I stuck it in a class. Could move it up a level
Oh, duh I didn't name then time_
That works. Thanks!
Elliott Sales de Andrade
@QuLogic
See also https://asv.readthedocs.io/en/stable/writing_benchmarks.html if you haven't found that already
kirk86
@kirk86

you can remove the first image by moving

ani = animation.FuncAnimation(
    fig, animate, init_func=init, interval=2, blit=True, save_count=50)

into a new cell, and putting %%capture at the top of the first one

Thanks!

Jody Klymak
@jklymak
There are a couple of PRs there now...
danuo
@danuo
I want to render text with ax.text() outside of the axis and it shall not effect the spacing of constrained_layout=True . How would I make ax.text invisible to spacing calculation?
Jody Klymak
@jklymak
t=ax.text(); t.set_in_layout(False)
Or t = fig.text()?
danuo
@danuo
awesome, thank you!
hannah
@story645
@jklymak do you know the answer here https://twitter.com/nicolaskruchten/status/1318887800796778496?s=19 - I think the answer is if users provide timestamps that incorporate est/day, that's what gets plotted - but wanted to confirm.
Thomas A Caswell
@tacaswell
We have had some bug reports on this, I think that if you give us timezone aware data we "do the right thing"
Jody Klymak
@jklymak
We have a whole test for this, but I didn't see too many good examples: def test_date2num_dst()
Also def _test_date2num_dst (for some reason...)
Gilles Jacobs
@gillesjac_twitter
Hi, I'm building a figure and want to change the font on the axis and secondary axis, what's the best way to do that?

I've seen the below

        plt.yticks(fontproperties=self.font_property)

But I'm not a fan because 1) it uses pyplot instead of my figure, and 2) it only does the primary axis or the secondary axis depending on calling order (probably can do both if I call it before and after .twinx())

Gilles Jacobs
@gillesjac_twitter

Also, unrelated;

How does zorder magic work? I have some lines (zorder 2) on the primary axis (zorder 0.1), and a polycollection (zorder 1) on the secondary axis (zorder 0); my primary axis has gridlines. If I set those gridlines (ax.yaxis.get_gridlines()) to zorder 0.1 they are still on top of my poly; do I have to set some other attribute?

Jody Klymak
@jklymak
@gillesjac_twitter This is probably best discussed on discourse.matplotlib.org where you can show some code. However if by "secondary axis" you mean a twinned axes, the axes are drawn in the order in which they are added to the figure, and the z-order is on a per-axes basis
Gilles Jacobs
@gillesjac_twitter
Yeah it's a .twinx()'d one; is there any way to work around this restriction? I could transform the data from my secondary axis to the domain of the first, and plot it on the first, but I'd rather avoid such an approach
As for posting code, trying to decude a minimum example. It also doesn't help that I'm stuck (due to constraints) on an older version of matplotlib (1.5)
Actually now that I think of it, I could work around it by using a line-locator tied to my primary axis, on my secondary axis, and plotting the primary axis in front of the secondary one
hannah
@story645
@tacaswell this should link to contributing https://global.pydata.org/talks/matplotlib
Tim Hoffmann
@timhoffm
If anybody has time: PRs #17107 and #18657 would be happy about a second reviewer (first approval by @QuLogic).
Thomas A Caswell
@tacaswell
I have opened them, lets see if I can manage to read them...
Bruno Beltran
@brunobeltran
haha I too have had those two open since tuesday....
hannah
@story645
If anybody has the bandwidth, do you know about windows GUI performance issues https://discourse.matplotlib.org/
Elliott Sales de Andrade
@QuLogic
If I might second the request to look at #18657; I'd prefer not to add more deprecations that need re-importing/renaming...
hannah
@story645
image.png
:happy dance:
not all of 'em seem to actually be matplotlib, but like
Ian Hunt-Isaak
@ianhi
a whole bunch of these https://matplotlib.org/3.3.1/thirdpartypackages/index.html aren't even on there :O
hannah
@story645
Yeah, a todo on the issue is to go through and put PRs on those projects...the ones that are even still maintained (which keeping track of status is what motivated the classifier)
matplotlib/matplotlib#16592
Ian Hunt-Isaak
@ianhi
Is using 3 numbers with subplots a recommended thing?
the example here https://matplotlib.org/3.3.2/api/_as_gen/matplotlib.pyplot.subplots.html doesn't seem to use that pattern at all
Elliott Sales de Andrade
@QuLogic
That's about subplot, not subplots
Ian Hunt-Isaak
@ianhi
ooooo thanks. I think that implies bedtime for me
hannah
@story645
:sleeping:
hannah
@story645
@anntzer what's the advice again for packaging stylfe files https://discourse.matplotlib.org/t/how-to-make-a-matplotlib-package/21654
Elliott Sales de Andrade
@QuLogic
So apparently we have less than 100 TODOs, but they average 7 years old https://www.tickgit.com/browse?repo=github.com/matplotlib/matplotlib
Tim Hoffmann
@timhoffm
Probably because we nowadays write GitHub issues instead of TODO comments.
Antony Lee
@anntzer
write a boring standard python package (https://packaging.python.org/tutorials/packaging-projects/ or other tutorials online) that distributes a standard python module with the rcparams in a standard python dict
hannah
@story645
Thanks!
Bruno Beltran
@brunobeltran
Hot take: MatplotlibDeprecationWarning should move to deriving from UserWarning (originally done to make sure they're always visible) to deriving from DeprecationWarning now that https://www.python.org/dev/peps/pep-0565/ is implemented.
I swear I always assume it's a DeprecationWarning subclass even after years of using knowing otherwise.
(I'm sure this conversation has been had before, but not since I've been around ;))