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

  • SEARCH
  • Home
  • 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 6866215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:09:16+00:00 2026-05-27T03:09:16+00:00

I would like to know how to plot a correlation matrix similar to the

  • 0

I would like to know how to plot a correlation matrix similar to the example below using GNUPlot (possibly from Octave, if that makes answers easier, but that’s really not necessary):

Correlation matrix example

The input is a square matrix of values between 0 and 1. The output should be a square grid where the color or the x,y square is given by the value in the xth row and yth column. (Typically, there are only ones on the diagonal and a diagonal symmetry in the input, but that doesn’t change anything to the problem.)

Optionally I would also love to know how to specify the color map.

  • 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-05-27T03:09:17+00:00Added an answer on May 27, 2026 at 3:09 am

    Using splot

    If you have the data in ASCII format then you can plot the matrix with

    set pm3d map
    splot "Data.csv" matrix
    

    where "Data.csv" is the path to the data file.
    Details about plotting matrices as well as 3D-plots are available here and there.

    In order to change the color settings you need to specify a new palette. To specify a new palette for different color schemes, take a look at this documentation. Furthermore tutorials about setting new palettes can be found here.

    Using plot

    Another way of doing it is:

    plot "Data.csv" matrix with image
    

    If the data is binary, the scan direction can be further controlled with flipx, center and rotate.

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

Sidebar

Related Questions

I would like to know what kind of advantages I get from using Core
I would like to know if I can open 2 different diagrams using MS
I would like to plot connected points in MATLAB. My connected points come from
I would like to know how to grab a specific number from an interval
I would like to create a graph like this one using gnuplot (or matplotlib,
I know how to create an histogram in Python, but I would like that
I am using FullCalendar in one my projects and would like to plot recurring
i would like know some reference. I know i can googling it. but prefer
Would like to know what a programmer should know to become a good at
Would like to know the c# code to actually retrieve the IP type: Static

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.