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 8604959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:42:21+00:00 2026-06-12T02:42:21+00:00

The data I’d like to visualize is my personal sleep data sourced from a

  • 0

The data I’d like to visualize is my personal sleep data sourced from a Zeo (www.myzeo.com if you’re not familiar). The data is ~50×1000 table with each row representing a night of sleep and each column is an integer from 0-5 representing the sleep ‘type’ recorded in a 30 second interval. So the first column is the score for the 1st 30 seconds of sleep, the 2nd column the score for the 2nd 30 second interval of sleep and so on.

To start, I’d like to simply map one row (night) of sleep data where the sleep type is mapped to a color. I’ve been browsing matplotlib’s gallery and examples, but its a bit overwhelming to a beginner to figure out what the most appropriate plot type is.

It seems like this color bar (2nd one?) might be close to what I’m looking for, but I’m not sure.

Any recommendations?

  • 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-12T02:42:23+00:00Added an answer on June 12, 2026 at 2:42 am

    This is an extremely specific and narrowly focused question. That said, I see two problems with the color bar visualization proposed:

    1. It only differentiates between different data segments by color. A short interval of sleep disruption may be too narrow to be easily visible (a slice 1 pixel in width is not very large)

    2. Depending on your audience, many color palettes don’t cater well to those with color blindness. That could further degrade the ability of a colorbar based plot to convey information.

    If you look at the example charts on the MyZeo site, they use a bar chart that conveys information based on color and height. So long as the number of intervals sampled is reasonable, a bar or line chart would be fair choices for your data. (Though if your dataset would require 1,000 separate bars, you may want to consider dithering your dataset so that it displays cleanly)

    This matplotlib example appears to provide a bar chart with coloring based on height:
    http://matplotlib.org/examples/pylab_examples/hist_colormapped.html

    If you do become interested in data visualization, books such as Tufte’s The visual display of quantitative information may be worth the read: it’s a classic primer on the design choices involved when displaying several dimensions of information on the same figure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[{data:{attr:{href:http://www.google.com/,title:http://www.google.com/},title:Google},attr:{},metadata:{}}, {data:{attr:{href:http://www.yandex.com/,title:http://www.yandex.com/},title:Яндекс},attr:{class:},metadata:{}}] Help get the links from Json. Get the links of a given
Data structure is a dictionary, each value is another dictionary, like: >>> from lib
Data sent from client will not get deserialized. Client: $.ajax({ type: 'POST', dataType: json,
data file: http://ubuntuone.com/3x5z4kFEUcVUB8KXYjICpD Plotting the above data like this clips some of it: tc
data table contain column named as Fld_primary. this column contain value like 0.00 it
Data comes from Wordpress metabox in a form of single long array. The data
Data from another system is replicated into a SQL Server 2005 database in real-time
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
DATA AND REQUIREMENTS The first table ( myMatrix1 ) is from an old geological
data structure of the table is like that ID ids --- ---- 2 3432,545,65454

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.