Code Monkey home page Code Monkey logo

Comments (2)

bmatthieu3 avatar bmatthieu3 commented on September 25, 2024

Hi @ggreco77,

I need more precision about your needs :

  • Do you want a method that directly plot the perimeter of a MOC ?
  • You want a list of all the skycoords delimiting the MOC (no specific order ? (anti-)clockwise order around the MOC ? What about MOCs having holes in them ? multiple MOCs that are not connexe ?).

The first point can be done with matplotlib patches. A pathpatch can be used to plot the perimeter delimiting the MOC regions from the non-MOC regions. But the second point is trickier I would say because of all the cases (holes, multiples MOCs...) that must be handled. The first point is not so tricky because we do not need a particular order for plotting the edges of all the HEALPix cells lying in the border of a MOC - the perimeter can be plotted edge by edge.

Thank you for your answer.

from mocpy.

ggreco77 avatar ggreco77 commented on September 25, 2024

I prefer the first proposal with specific matplotlib patches. In fact, at the end of day, we want to plot the MOC perimeter using matplotlib. Most probably we want a set of matplotlib methods 1) plotting the perimeter increasing the line thickness 2) filling the area with transparency from 0 to 1 (no MOC grid).

Thanks to take into account this issue.

from mocpy.

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.