Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<wiggy> bwah, vodka in my mouse


devel / comp.lang.python / Re: About get_axes() in Pandas 1.2.3

SubjectAuthor
o Re: About get_axes() in Pandas 1.2.3Michael Torrie

1
Re: About get_axes() in Pandas 1.2.3

<mailman.3.1637601189.31677.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16165&group=comp.lang.python#16165

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: torr...@gmail.com (Michael Torrie)
Newsgroups: comp.lang.python
Subject: Re: About get_axes() in Pandas 1.2.3
Date: Mon, 22 Nov 2021 10:13:03 -0700
Lines: 39
Message-ID: <mailman.3.1637601189.31677.python-list@python.org>
References: <1435065197.1906229.1637571833565.ref@mail.yahoo.com>
<1435065197.1906229.1637571833565@mail.yahoo.com>
<d45ba6b2-2444-7aa0-77b6-010dc9c9874b@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de mfDzesAnWfgL5SYCDq8/6wl+XuB7vxZJhvcEa72gkGrA==
Return-Path: <torriem@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=aDuBt6JI;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'this:': 0.03; '(which':
0.04; 'away.': 0.05; 'matplotlib': 0.07; 'dependencies': 0.09;
'graph': 0.09; 'pandas': 0.09; 'skip:^ 10': 0.09; 'import': 0.15;
'bundle': 0.16; 'corrected': 0.16; 'enough,': 0.16; 'mahmood':
0.16; 'received:209.85.214.178': 0.16; 'received:mail-
pl1-f178.google.com': 0.16; 'script.': 0.16; 'somehow.': 0.16;
'subject:() ': 0.16; 'wrote:': 0.16; 'problem': 0.16; 'code.':
0.17; 'message-id:@gmail.com': 0.18; 'to:addr:python-list': 0.20;
'bit.': 0.22; 'version': 0.23; 'anything': 0.25; 'bit': 0.27;
'function': 0.27; 'goes': 0.28; 'environment': 0.29; 'asked':
0.29; 'header:User-Agent:1': 0.30; 'code,': 0.31; 'am,': 0.31;
'question': 0.32; 'python-list': 0.32; 'received:209.85.214':
0.32; 'returning': 0.32; 'but': 0.32; 'there': 0.33; 'skip:" 20':
0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'received:209.85': 0.37;
'received:192.168': 0.37; 'way': 0.38; 'error,': 0.38; '8bit%:14':
0.38; 'received:209': 0.39; 'something': 0.40; 'should': 0.40;
'lack': 0.60; 'provide': 0.60; 'point.': 0.62; 'days': 0.62;
'verify': 0.64; 'clear': 0.64; 'down': 0.64; 'subject:About':
0.64; 'upgrade': 0.64; 'your': 0.64; 'decided': 0.67; 'virtual':
0.71; "you'll": 0.73; 'honestly': 0.84; 'narrow': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=subject:to:references:from:message-id:date:user-agent:mime-version
:in-reply-to:content-language:content-transfer-encoding;
bh=gmo/CEWnJZX3lnk8ky9s+bNRDnyxgZokv9UpQMu13F8=;
b=aDuBt6JIdOlcF7AJOtDmkf/W8Lq0WIXAPk4jlxpNbrvv12yDvhmC39kLnnP6ftXDMH
HzP/Rz5bliTLQDk9bwNIj37zdeI3jme6dDc15wt+5OCOK1f/KPKC0JrMKNoKM8RnYlFC
Auxvbsi04yvFoJWHro67CV+LyH67RcGw69iWMBU3eUTcTAt88TX7IofZaigmn1tX/uBv
uoKJJUADpPtvWqf1QXSffh7bhY23i76kb6bG+bfhk2L/uKZGggmquJXtBMClxTzcXh4A
kVKTONh4SIy/3usbi9kVnjI2RH+GuJLt6Web3ufBDSP9jh4z1jXUcrwi+Jf74GBe/TNq
sszQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=gmo/CEWnJZX3lnk8ky9s+bNRDnyxgZokv9UpQMu13F8=;
b=iKBoRM5U1byqSgo1uqpA2B2H+1Ifd3KVbVnqvBDjt6rfFnw/MYJh+o9VPwmuLPs7MJ
3EsHVgxglJjOfY4E8o1cno1D6LuqD1A46OhmSHcJaqIJwbkToS82skRgBe21EfUIkrot
jhcxLUKMzWE7JvTlCSq8PVKKDKhi7BGk8kOer7eipZ8JJL6okTZSqzQIrMtAmJTZqoBS
vJgupzoKA+xYzY8yNcGstmlmwslmdqV41nbgvL6C1VNEwOv2EAKcBUw0qRHcNvR8OxSL
neY9BvOhsaONkGy0yY9L4EuUyA1QSFQiFzOXmPOyO6PTduDFdjXpLpCpQuUl60kI5CCv
ELkw==
X-Gm-Message-State: AOAM531josbTrqt02SIT/n+L2A1Aq6e6wzX3C5bttR5YzM+KQqqCJrki
jPmI1M0IFgtxTuevzv/EZe6kuSlM1THQ9w==
X-Google-Smtp-Source: ABdhPJy/29CrDIrTvn+l41b3pldShnOQaS7nOhOlW/umtisAM4h+WTql3LjmdF9svWU1/TnghgX6ng==
X-Received: by 2002:a17:90b:3718:: with SMTP id
mg24mr33052847pjb.109.1637601185767;
Mon, 22 Nov 2021 09:13:05 -0800 (PST)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.1
In-Reply-To: <1435065197.1906229.1637571833565@mail.yahoo.com>
Content-Language: en-US
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.37
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <d45ba6b2-2444-7aa0-77b6-010dc9c9874b@gmail.com>
X-Mailman-Original-References: <1435065197.1906229.1637571833565.ref@mail.yahoo.com>
<1435065197.1906229.1637571833565@mail.yahoo.com>
 by: Michael Torrie - Mon, 22 Nov 2021 17:13 UTC

On 11/22/21 2:03 AM, Mahmood Naderan via Python-list wrote:
> Hi
>
> I asked a question some days ago, but due to the lack of minimal
> producing code, the topic got a bit messy. So, I have decided to ask
> it in a new topic with a clear minimum code.
> import pandas as pd
> import csv,sys
> import matplotlib
> import matplotlib.pyplot as plt
>
> df = pd.read_csv('test.batch.csv')
> print(df)
>
> print("matplotlib version = ",  matplotlib.__version__)
> print("pandas version = ", pd.__version__)
> print("sys version", sys.version_info)
>
> fig,axes = plt.subplots(2,1, figsize=(20, 15))
^^^^^^^^^^^^^
I can help you narrow it down a bit. The problem actually occurs inside
this function call somehow. You can verify this by doing this:

fig,axes = plt.subplots(2,1, figsize=(20, 15))
print ("axes[0].get_figure()=",axes[0].get_figure())

You'll find that get_figure() is returning None, when it should be
returning Figure(2000x1500). So plt.subplots is not doing something
properly which was corrected at some point. Oddly enough, with pandas
1.1.4 and matplotlib 3.2.2 (which is what my system has by default),
there is no error, although the graph is blank.

In my venv, when I upgrade matplotlib from 3.3.4 to 3.5, the problem
also goes away. 3.4.0 also works.

Honestly your solution is going to be to provide a virtual environment
with your script. That way you can bundle the appropriate dependencies
without modifying anything on the host system.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor