Git Product home page Git Product logo

Comments (8)

samadpls avatar samadpls commented on July 22, 2024 1

Hey @rythorpe , can I take this issue, Can you confirm that we just need to check if ax is not an instance of Axes3D and then raise a TypeError?

from hnn-core.

rythorpe avatar rythorpe commented on July 22, 2024 1

Yep, go for it @samadpls!

from hnn-core.

jasmainak avatar jasmainak commented on July 22, 2024

Fix is welcome !

from hnn-core.

gtdang avatar gtdang commented on July 22, 2024

I don't think there is a way to update an 2d axis to a 3d projection. https://stackoverflow.com/questions/35209489/can-i-turn-an-existing-ax-object-into-a-3d-projection

Maybe there should be a check on an axes argument and raises an error if it's not a Axes3D object?

from hnn-core.

rythorpe avatar rythorpe commented on July 22, 2024

I was thinking of removing the existing 2D axes and then adding new 3D axes, but this might mess with formatting if the user starts with a more detailed grid of subplots (maybe?). Your suggestion about adding a check for an Axes3D object is probably the easiest solution, however.

from hnn-core.

gtdang avatar gtdang commented on July 22, 2024

In that case I think the user would have to pass the grid/subplot/figure so you can index which one to replace. I don't think it's typical convention to pass the whole axes array to a plotting function.

from hnn-core.

rythorpe avatar rythorpe commented on July 22, 2024

I believe the figure as accessible via Axes.get_figure(), but I generally agree that the simpler solution where we raise an error if the user attempts plotting on the wrong type of Axes object is the way to go.

from hnn-core.

jasmainak avatar jasmainak commented on July 22, 2024

as long as we catch the error before it becomes a cryptic traceback, I think it's fine

from hnn-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.