<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>56011</bug_id>
          
          <creation_ts>2025-09-16 13:20:24 +0300</creation_ts>
          <short_desc>mpltools.special.errorfill не работает с версией matplotlib &gt;= 2.2.0 в репозитории</short_desc>
          <delta_ts>2025-09-16 13:20:24 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p9</product>
          <component>python-module-mpltools</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="real@altlinux.org">real</assigned_to>
          <cc>slev</cc>
          
          <qa_contact name="qa-p9@altlinux.org">qa-p9</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>272563</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-09-16 13:20:24 +0300</bug_when>
    <thetext>Upstream: https://github.com/tonysyu/mpltools/issues/32


Шаги
====

1. # apt-get install -y python-module-{numpy,matplotlib,mpltools}

2. $ cat &gt; alt-mpltools-test.py &lt;&lt; &apos;EOF&apos;
#!/usr/bin/python
# coding=utf8

# https://tonysyu.github.io/mpltools/auto_examples/color/plot_cycle_cmap.html

import numpy as np
import matplotlib.pyplot as plt

from mpltools import layout
from mpltools import color


n_lines = 10

# Change default color cycle for all new axes
color.cycle_cmap(n_lines)

figsize = layout.figaspect(aspect_ratio=0.5)
fig, (ax1, ax2) = plt.subplots(ncols=2, figsize=figsize)

# Change color cycle specifically for `ax2`
color.cycle_cmap(n_lines, cmap=&apos;pink&apos;, ax=ax2)

x = np.linspace(0, 10)
for shift in np.linspace(0, np.pi, n_lines):
    ax1.plot(x, np.sin(x - shift), linewidth=2)
    ax2.plot(x, np.sin(x - shift), linewidth=2)

plt.show()
EOF

3. $ python alt-mpltools-test.py

Фактический результат
=====================

&gt; Traceback (most recent call last):
&gt;   File &quot;alt-mpltools-test.py&quot;, line 16, in &lt;module&gt;
&gt;     color.cycle_cmap(n_lines)
&gt;   File &quot;/usr/lib/python2.7/site-packages/mpltools/color.py&quot;, line 215, in cycle_cmap
&gt;     plt.rc(&apos;axes&apos;, color_cycle=color_cycle.tolist())
&gt;   File &quot;/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py&quot;, line 303, in rc
&gt;     matplotlib.rc(*args, **kwargs)
&gt;   File &quot;/usr/lib64/python2.7/site-packages/matplotlib/__init__.py&quot;, line 1265, in rc
&gt;     &apos;name &quot;%s&quot;&apos;) % (key, g, name))
&gt; KeyError: &apos;Unrecognized key &quot;axes.color_cycle&quot; for group &quot;axes&quot; and name &quot;color_cycle&quot;&apos;


Ожидаемый результат
===================

Отображение графика вида:
* https://tonysyu.github.io/mpltools/auto_examples/color/plot_cycle_cmap.html


Воспроизводимость
=================

Актуально для виртуальных машинах:

[p9]
python-module-mpltools-0.2.0-alt2.git20150224.1.1.noarch
python-module-matplotlib-2.2.3-alt6.x86_64

В более новых ветках и в sisyphus пакета нет.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>