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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:13:33+00:00 2026-06-18T09:13:33+00:00

As shown below, I have a graph. Inside each vertex point (i.e. circle) is

  • 0

As shown below, I have a graph. Inside each vertex point (i.e. circle) is a number.
I prepare this graph as such. First I place a circle on the coordinates of each vertex using the following code:

plot(vertexCoords(1,:),vertexCoords(2,:),'o',...
  'MarkerFaceColor',[0.90 0.90 0.90],...
   'MarkerSize',30,'MarkerEdgeColor','k','LineWidth',2);

Then, I overlay a text object as follows:

text(vertexCoords(1,:),vertexCoords(2,:),num2cell(valueVector),...
    'HorizontalAlignment','center');

I would like to choose a certain colormap, and have the color of each circle be proportional to the number in the circle (the number can range from 0 to 1). How do I go about doing this?

enter image description here

  • 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-18T09:13:34+00:00Added an answer on June 18, 2026 at 9:13 am

    I think you can do this with the scatter command instead of plot command. Please see below…


    % for random values
    vertexCoords=rand([5 2]);
    % for arbitrary values
    valuevector=[4 5];

    figure
    % scatter(X,Y,S,C) where X,Y: coordinates, S:size (I set it to 500 here), C:Color
    scatter(vertexCoords(1,:),vertexCoords(2,:),500,(valuevector), 'filled')
    colormap(autumn)
    hold on
    text(vertexCoords(1,:),vertexCoords(2,:),num2cell(valuevector),...
    'HorizontalAlignment','center');

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

Sidebar

Related Questions

I have an adjacency list defined as shown below. At this point I need
Currently I have a borderContainer layout as shown below: My code for this layout
I need to create a graph as shown in the image below. I have
The graph I have created using prefuse (shown below) is too dense! There are
I have a ListView (shown below). I would like the cells to flash a
I have the script shown below that displays a list of records from a
I have the array shown below. I would like to have a resultant array
I have a program shown below: Socket receiveSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); EndPoint
I do have a table data as shown below: <td> <label for=title>Title : </label>
Basicily i have a index.html shown below.. <html> <head> <title>UI Test: Main Menu</title> <script

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.