GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — plot_directive failures · Issue #20 · matplotlib/matplotlib

plot_directive failures #20

New issue
Copy link
New issue
Copy link
Closed
Closed
plot_directive failures#20
Copy link
Labels
Documentation

Description

@ddale
ddale
opened on Feb 24, 2011
Issue body actions

The sphinx plot_directive is failing on geo_demo and artist_tests, with both master and v1.0.x. Tested with sphinx-1.0.7:

/home/darren/.local/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py:322: PlotWarning: Exception running plot /home/darren/Projects/matplotlib/doc/mpl_examples/pylab_examples/geo_demo.py
Traceback (most recent call last):
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py", line 319, in render_figures
    run_code(plot_path, function_name, plot_code, context=context)
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py", line 230, in run_code
    "__plot__", fd, fname, ('py', 'r', imp.PY_SOURCE))
  File "geo_demo.py", line 10, in <module>
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/pyplot.py", line 658, in subplot
    a = fig.add_subplot(*args, **kwargs)
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/figure.py", line 766, in add_subplot
    a = subplot_class_factory(projection_class)(self, *args, **kwargs)
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/axes.py", line 8397, in __init__
    self._axes_class.__init__(self, fig, self.figbox, **kwargs)
  File "custom_projection_example.py", line 33, in __init__
TypeError: expected string or Unicode object, NoneType found

and:

/home/darren/.local/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py:322: PlotWarning: Exception running plot /home/darren/Projects/matplotlib/doc/mpl_examples/units/artist_tests.py
Traceback (most recent call last):
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py", line 319, in render_figures
    run_code(plot_path, function_name, plot_code, context=context)
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py", line 230, in run_code
    "__plot__", fd, fname, ('py', 'r', imp.PY_SOURCE))
  File "artist_tests.py", line 30, in <module>
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/collections.py", line 852, in __init__
    self.set_segments(segments)
  File "/home/darren/.local/lib/python2.7/site-packages/matplotlib/collections.py", line 861, in set_segments
    seg = np.asarray(seg, np.float_)
  File "/home/darren/.local/lib/python2.7/site-packages/numpy/core/numeric.py", line 284, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.

Activity

  1. mdboom commented on Jun 15, 2011

    @mdboom
    mdboom
    on Jun 15, 2011
    Member
    More actions

    It is no longer doing this for me. How about you, @ddale?

  2. ddale commented on Jun 15, 2011

    @ddale
    ddale
    on Jun 15, 2011
    ContributorAuthor
    More actions

    I can't test it, I'm still getting these pdb errors when I try to build the docs on OS X. If it looks ok on your end, I'm going to close it.

  3. ddale
    closed this as completedon Jun 15, 2011
  4. magnunor
    added 2 commits that reference this issue on Dec 5, 2013

    FIXES matplotlib#20: This script aims on providing an easy way to imp…

    This issue will close once commit 3c0209b is merged into the 'master' branch.
    3c0209b

    FIXES matplotlib#20

    This issue will close once commit ffc5078 is merged into the 'master' branch.
    ffc5078
  5. fariza
    added a commit that references this issue on Sep 22, 2016

    Merge pull request matplotlib#20 from fariza/setuptools-readme

    9b0ffaa
  6. swfiua
    added a commit that references this issue on Mar 17, 2017

    Merge pull request matplotlib#20 from swfiua/dice

    4b450c5
  7. QuLogic
    added a commit that references this issue on Mar 18, 2017

    Merge pull request #20 from NelleV/tacaswell_doc_lw_scale_api_changes

    27030ed
  8. tacaswell
    added a commit that references this issue on Apr 14, 2017

    Merge pull request #20 from matplotlib/master

    8e796b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.