Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:12
    emazep edited #23007
  • 14:56
    story645 unlabeled #22820
  • 14:56
    story645 ready_for_review #22820
  • 13:33
    jklymak labeled #20202
  • 13:33
    jklymak unlabeled #20202
  • 13:33
    jklymak commented #20202
  • 13:33
    jklymak closed #20202
  • 13:06
    jklymak commented #23012
  • 13:02
    jklymak commented #23013
  • 08:10
    jklymak edited #23039
  • 08:10
    jklymak edited #23039
  • 08:08
    jklymak commented #22405
  • 08:06
    Sync271 synchronize #22820
  • 08:05
    Sync271 commented #22820
  • 06:41
    jklymak converted_to_draft #22820
  • 05:40

    oscargus on main

    Fix installing contourpy on CI … Merge pull request #23071 from … (compare)

  • 05:40
    oscargus closed #23071
  • 04:28
    QuLogic milestoned #23068
  • 04:28

    QuLogic on main

    Slight refactor of _c_internal_… Merge pull request #23068 from … (compare)

Thomas A Caswell
@tacaswell
I think we should consider retiring that label. GH now has built in approval counts (which we used to do with comments or editing the title!) and a draft status
Jody Klymak
@jklymak
I think folks use "Review needed" as a ping
I know some reviewers use it to see if there is anything that needs a review
Thomas A Caswell
@tacaswell
I'm traveling again today. I should make it to my destination and be able to get on the call but traffic on I-95 is a chaos machine
Greg Lucas
@greglucas

Hi 👋

We’re happy to invite you to the first Matplotlib New Contributor Meeting 🎉

The first meeting will take place next week, May 10th (Tuesday) at 5:00 PM UTC and it will be scheduled to repeat monthly after that. 🥳

This meeting is for any new contributors, who want to meet more experienced contributors and maintainers, in order to get support with getting started as a new contributors, with their on going pull request (PR), or anything else you might want to discuss - you decide what’s on the agenda!

To join us please check our meeting calendar at Scientific Python, which has the meeting times, with links to the agenda we prepared and the meeting zoom link. [1]

All are welcome, and we’re looking forward to meeting with you!

Cheers,

Greg (he/him), and Noa (she/her)

PS- if you’re a more experienced contributor or maintainer, and want to join to help new contributors, you are also welcome to join us!

[1] https://scientific-python.org/calendars/

Oscar Gustafsson
@oscargus
Is there a way to use two markers for a legend entry? I want to use two different markers for (more or less) the same thing (the marker contains information, but from a legend perspective they should be grouped). Alternatively, change the legend entry to a box with the same color of the markers.
story645
@story645:matrix.org
[m]
Oscar Gustafsson
@oscargus
More like the two keys example on that page (which I had not found, many thanks!). Except, that I'd ideally "add it to the plot" so that a user can easily do legend and it automatically show up (assuming that they pass a label when passing the data to the function generating the two types of markers, working on an extension). But clearly a step in the right direction, thanks again!
Oscar Gustafsson
@oscargus
I guess it involves specifying my own Collection and take it from there. Should be doable.
Connor Cozad
@23ccozad
Hi everyone, idk if this is the place to ask, but I’m trying to get my development environment set up for matplotlib and I'm running into an error. When I try to install matplotlib in editable mode with pip install -e ., I get “error: command 'msbuild' failed: None”, when it tries to run msbuild. Anyone faced a similar issue before or have a potential fix for this?
Elliott Sales de Andrade
@QuLogic
You will need a compiler installed, whichever is compatible with the version of Python you are using
I think this may not actually be mentioned anywhere in the docs
Noa Tamir
@noatamir
oh interesting. is this specific to an OS, or something else?
Connor Cozad
@23ccozad
@QuLogic How would I go about doing that? Where can I download a compiler from?
hannah
@story645
@23ccozad if you're on windows, you'll need visual studio
13 replies
Thomas A Caswell
@tacaswell
https://github.com/pre-commit-ci/issues/issues/122#issuecomment-1120046575 <- I have to run but we need an empty pre-commit yaml on v3.5.x and v3.5-doc
10 replies
wuyang3
@wuyang3
Selection_774.png
3 replies
hi there, i've been google around and haven't found any similar case. the figure size seems to be scaled bigger on my screen where the figure button is extremely large, a markersize of 1 will also give super big marker. does anyone know what is happening here?
in the above picture, the markersize is 1, the plot linewidth and grid linewidth is also 1. i have to manually set extremely small pad value and linewidth to get everything right. this is driving me crazy.
Selection_775.png
Connor Cozad
@23ccozad
Hi, sorry to bother y’all again. I’m currently trying to build docs and run tests, but I keep running into UnicodeEncodeError when it needs to use TeX. I cannot build the docs and I’m failing 10 tests because of this. I currently have MiKTeX and all of the necessary packages (to my knowledge) installed. Anyone have any ideas on this one?
10 replies
kesner
@kesner
It seems like the color cmap "fall" is absent from version 3.5.1. Can someone tell me how to create it?
13 replies
story645
@story645:matrix.org
[m]
Sorry deleted cause I thought I'd pasted the wrong thing https://cooltools.readthedocs.io/en/latest/_modules/cooltools/lib/plotting.html#get_cmap
hannah
@story645
is there an easy way to add a border to an image generated with imshow and a small extent?
Jody Klymak
@jklymak
ax.set_edgecolor('k')?
hannah
@story645
won't work cause the image wasn't the whole axes, just a teeny tiny piece of it - unless AxesImage carries it's own axes methods/an imshow is always an axes?
Jody Klymak
@jklymak
If you know the extent just draw a patch around it/
hannah
@story645
yeah AxesImage doesn't have a set_edgecolor , and yeah that makes sense
hannah
@story645
also that worked, thanks!
Antony Lee
@anntzer
Does anyone know of a code editor which has a "run file into current ipython" functionality (e.g. spyder), so that one can interact with the ipython process after the code has finished running, but which does not suffer from spyder-ide/spyder#4367 ("blocking does not work")? (VS code does not appear to have a "run into current ipython" AFAICT, but perhaps there's an extension for that?)
10 replies
Jody Klymak
@jklymak
Sounds a lot like a jupyter notebook with a kernel sidewindow. Note that the vscode notebook experience is pretty nice.
Ryan May
@dopplershift
3 replies
Harish Pentapalli
@harish5p
How to create comet chart in matplotlib? Comet chart in altair for reference
5 replies
Noa Tamir
@noatamir
I will miss the meeting today.
2 replies
Noa Tamir
@noatamir
I used the conda environment to setup today (new machine 🎉). I am using mamba forge and 2 dependencies weren't found: pikepdf & contourpy>=1.0.1. I am wondering:
  1. Are they critical? I mainly want to work on the docs at the moment but in general I'd like to have a healthy dev environment...
  2. Is this mamba specific or Mac-ARM specific? If I switch to miniforge or miniconda would this go away?
  3. Should we document this anywhere or is it the type of thing where "nature heals itself" 😉?
19 replies
hannah
@story645
do not have time to go down the rabbit hole but the doc make is really wonky on windows
Brandon Bocklund
@bocklund:matrix.org
[m]

I'm wanting to plot a vertical line from (x1d, y1a) to (x1d, y2d) (where x1d is in data coordinates, y1a is in axis coordinates, and y2d is in data coordinates) - essentially I want a line descending from some point down to the x-axis.

  • axvline doesn't quite do what I want (I'd need to be able to specify ymax in data coordinates)
  • ConnectionPatch also doesn't quite do it, as it allows for mixed coordinates between points, but not within a point (i.e. each (x, y) point needs to be in the same coordinate system)

It seems like ConnectionPatch can take a custom transform, so I could build a transform for the point that has mixed coordinate systems. Is there a better way to do this?

3 replies
Brandon Bocklund
@bocklund:matrix.org
[m]
Thanks, that's exactly what I needed!
import matplotlib.pyplot as plt
from matplotlib.patches import ConnectionPatch
from matplotlib.transforms import blended_transform_factory

fig, ax = plt.subplots()
ax.set_xlim(-5, 5)
ax.set_ylim(-10000, 0)

x = 0.6  # data coords
ymax = -5000 # axis coords

transDataAxes = blended_transform_factory(ax.transData, ax.transAxes)

xyA = (x, 0)  # mixed (data, axis) coordinates
xyB = (x, ymax)  # data coordinates
patch = ConnectionPatch(xyA, xyB, transDataAxes, "data")
ax.add_patch(patch)
Philip Nelson
@blu3r4d0n:matrix.org
[m]
woo!! congrats;
!
hannah
@story645
are tests just borked?
Elliott Sales de Andrade
@QuLogic
yes, GitHub setup-python action is broken for Tk
and some random failure with font loading in one environment too, which seems to have no cause
Elliott Sales de Andrade
@QuLogic
is it broken for you locally, or do you only mean CI?
story645
@story645:matrix.org
[m]
I couldn't build the docs locally - but not sure if that's a how I installed things issue or windows weirdness, but also I'm seeing test failures on a PR that's purely changing some words
Jody Klymak
@jklymak
Hi all, new set of meeting notes at https://hackmd.io/49a-u44CTja02xQRaG88JA. Call today is at 21:00 CEDT, 15:00 EDT, 12:00 PDT, 09:00 HST. Please add agenda items. Note in particular I am proposing a discussion of the units handling....
1 reply
(though of course we can table that if folks aren't up for it)
Noa Tamir
@noatamir

I am getting some warnings when building the docs:

WARNING: Could not find backreferences file: ../matplotlib/doc/api/_as_gen/matplotlib.units.registry.examples.new
WARNING: The backreferences are likely to be erroneous due to file system case insensitivity.

and the same for:

../matplotlib/doc/api/_as_gen/matplotlib.RcParams.examples.new
../matplotlib/doc/api/_as_gen/matplotlib.path.examples.new
../matplotlib/doc/api/_as_gen/matplotlib.RcParams.update.examples.new

What's the significance?

3 replies