Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8051351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:16:57+00:00 2026-06-05T07:16:57+00:00

given a point in 2D space, I have a function that can give to

  • 0

given a point in 2D space,

I have a function that can give to which ‘zone’ that function belongs to.
The zones are numbered ‘1, 2, 3, …

Using this function I took a lot of random points in 2D space and colored each zone.
Each of them start from the centre(square) which is the 1st zone(blue)
2nd zone (green), so on from inside to outside. And it looks like this:
enter image description here

How can I make this plot look continuous without looking like a lot of points?(with each zone having a single smooth color)

I’ve used:

import matplotlib.pyplot as plt
for zone in zones:
    plt.plot(X, Y, 'o')  # picks a different color automatically
plt.show()

where zones is a dictonary in the form

{zone:[X, Y]}

for example:
{1:[[x1, x2, …], [y1, y2, y3, …]], 2:[[x11, x22, …}
where
(x1, y1), (x2, y2), … belong to first zone
(x11, y11), … belong to 2nd zone and so on…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:16:58+00:00Added an answer on June 5, 2026 at 7:16 am

    Three quick suggestions:

    1. Remove the marker borders (as Gaby aka G. Petrioli already suggested).
    2. Use smaller markers – so the edge overlap is reduced.
    3. Use more markers – so the space is covered evenly (as you increase the size of the markers you will of course need even more to cover the area, anyhow).

    Like this:

    enter image description here

    From this:

    import matplotlib.pyplot as plt
    import numpy as np
    
    data1 = np.random.random_sample((2, 10000))
    data2 = np.random.random_sample((2, 100000))
    plt.plot(data1[0], data1[1], 'o',markersize=10, markeredgewidth=1)
    plt.plot(data1[0], data1[1]+1, 'o',markersize=10, markeredgewidth=0)
    plt.plot(data2[0], data2[1]+2, 'o',markersize=1, markeredgewidth=0)
    
    plt.xlim((-0.5,1.5))
    plt.ylim((-0.5,3.5))
    plt.show()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find rows which are within ____meters from the given point. THis
I have a collection of 2-D points which represent a 1-variable function. Given a
Given N points in a 3D space, how to find the smallest sphere that
Someone can point me reliable method to run given application in different session of
I have a Python script that we're using to parse CSV files with user-entered
I am trying to make a function that can return the prime factors of
I have a large work space which has many source files of C code.
This is a problem which is hard to explain in words, though I have
I have the following code, which I am using to test how I'm using
(This is not exactly the problem that I have, but it's isomorphic, and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.