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 — Circular markers plotted in SubplotHost do not appear in legend · Issue #81 · matplotlib/matplotlib

Circular markers plotted in SubplotHost do not appear in legend #81

New issue
Copy link
New issue
Copy link
Closed
Closed
Circular markers plotted in SubplotHost do not appear in legend#81
Copy link
Assignees
leejjoon

Description

@astrofrog
astrofrog
opened on Apr 12, 2011
Issue body actions

The following example illustrates an issue that occurs when using scatter to plot circular markers in a SubplotHost instance:

import matplotlib.pyplot as plt

import mpl_toolkits.axes_grid.parasite_axes as mpltk

fig = plt.figure()
ax = fig.add_subplot(1,1,1)

ax.scatter([0.4],[0.5], marker='x', label='crosses')
ax.scatter([0.5],[0.5], marker='o', label='circles')
ax.scatter([0.6],[0.5], marker='^', label='arrows')

ax.set_xlim(0.,1.)
ax.set_ylim(0.,1.)

ax.legend()

fig.savefig('test_original.png')

fig = plt.figure()
ax = mpltk.SubplotHost(fig, 1, 1, 1)
fig.add_axes(ax)

ax.scatter([0.4],[0.5], marker='x', label='crosses')
ax.scatter([0.5],[0.5], marker='o', label='circles')
ax.scatter([0.6],[0.5], marker='^', label='arrows')

ax.set_xlim(0.,1.)
ax.set_ylim(0.,1.)

ax.legend()

fig.savefig('test_mpl_toolkit.png')

The circular markers do not appear in the legend when using SubplotHost.

Activity

  1. ghost assigned
    leejjoon
    on Apr 13, 2011
  2. leejjoon
    closed this as completedin 41caaaeon Apr 13, 2011
  3. efiring
    added a commit that references this issue on Apr 17, 2011

    axes_grid1 : fix missing circle-type scatter plot in legend. close #81.

    This issue will close once commit 41caaae is merged into the 'main' branch.
    41caaae
  4. fariza
    added a commit that references this issue on Sep 22, 2016

    Merge pull request matplotlib#81 from fgoudreault/data_unittests

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

Metadata

Metadata

Assignees

  • @leejjoon
    leejjoon

Labels

No labels
No labels

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.