Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gridcorner
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Gregory Ashton
  • gridcorner
  • Merge requests
  • !3

allow single-param plot with np.atleast_2d(axes)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged David Keitel requested to merge dkeitel/gridcorner:patch-1 into master Sep 10, 2020
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

@GregAshton this is to resolve TypeError: 'AxesSubplot' object is not subscriptable when calling with a single-parameter array. This small fix seems to work for me in PyFstat examples without changes needed for this special case anywhere else in the code, it just skips the 2D contours and returns a single histogram as makes sense:

short_transient_CW_corner

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: patch-1