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 — Discussion on adding `xs`, `ys` and `zs` in Line and Scatter API · Issue #394 · fastplotlib/fastplotlib

Discussion on adding xs, ys and zs in Line and Scatter API #394

New issue
Copy link
New issue
Copy link
Open
Open
Discussion on adding xs, ys and zs in Line and Scatter API#394
Copy link

Description

@kushalkolar
kushalkolar
opened on Dec 12, 2023
Issue body actions

Brought up by @gviejo

Right now the LineGraphic and ScatterGraphic require a 2D or 3D array of xy or xyz data. This means that an extra step is required by the user to plot data that are non-continuous by creating an array with nans to fill the gaps. It should be easy to allow kwargs for xs, ys and zs for line/scatter, parse that into a pygfx buffer with nans, and that's basically it.

Activity

  1. gviejo commented on Jan 9, 2024

    @gviejo
    gviejo
    on Jan 9, 2024
    More actions

    Here is a suggestion inspired from matplotlib :
    when calling add_line, it does this at the beginning

    try:
        xy = (data.index.to_numpy(), datato_numpy())
    except:
        xy = data
  2. gviejo commented on Jan 9, 2024

    @gviejo
    gviejo
    on Jan 9, 2024
    More actions

    Same for add_scatter

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

    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.