Giter VIP home page Giter VIP logo

Comments (2)

FelipeLema avatar FelipeLema commented on June 7, 2024

Since this is my fault, I might as well add a comment:

NaN provides a way to disjoint data. This comes in handy when grouping separate polygons that share some attribute.

using Plots; plotly()

function rectangle_from_coords(xb,yb,xt,yt)
    [
     xb yb
     xt yb
     xt yt
     xb yt
     xb yb
     NaN NaN
     ]
end

some_rects=[
       rectangle_from_coords(1 ,1 ,5 ,5 )
       rectangle_from_coords(10,10,15,15)
       ]
other_rects=[
       rectangle_from_coords(1 ,10,5 ,15)
       rectangle_from_coords(10,1 ,15,5 )

plot(some_rects[:,1], some_rects[:,2],label="some group")
plot!(other_rects[:,1], other_rects[:,2],label="other group")

from plotdocs.jl.

mkborregaard avatar mkborregaard commented on June 7, 2024

@FelipeLema if this is your fault, would you consider adding this in a PR? :-)

from plotdocs.jl.

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.