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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:20:09+00:00 2026-06-03T02:20:09+00:00

Is it possible to plot a matrix(histogram) like [v(1);…;v(i-1);v(i)] in gnuplot. This is the

  • 0

Is it possible to plot a matrix(histogram) like [v(1);…;v(i-1);v(i)] in gnuplot. This is the standard output with stringstream << cv::Mat(). This is the y values for hue values 0 to 180.

[25; 0; 0; 0; 0; 0; 1; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 4; 0; 0; 0; 5; 0; 0; 0; 0; 0; 16; 0; 0; 0; 0; 0; 3; 0; 0; 0; 4; 0; 10; 0; 0; 1; 0; 0; 4; 0; 37; 3; 3; 0; 0; 11; 10; 7; 0; 0; 47; 0; 0; 16; 0; 18; 91; 8; 41; 34; 101; 22; 15; 149; 223; 45; 94; 25; 0; 312; 745; 53; 28; 166; 413; 253; 47; 682; 144; 63; 630; 48; 92; 222; 3; 253; 175; 1; 62; 7; 1; 80; 0; 40; 9; 0; 1; 0; 0; 2; 12; 0; 0; 0; 9; 1; 0; 0; 0; 0; 2; 0; 0; 0; 0; 0; 5; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 7; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0]

A short guide on how to present data for gnuplot would be nice.

  • 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-03T02:20:10+00:00Added an answer on June 3, 2026 at 2:20 am

    You have several choices
    (1) Use the GNUPLOT-CPP wrapper (download here: http://code.google.com/p/gnuplot-cpp/)
    This will guide itself through its tutorial/docs

    (2) Simple solution. Save your values to a file, say “DATA.txt” then invoke, from cpp (exec command), a script like “plot.plt” Which looks something like:

        #!/usr/bin/gnuplot -persist
    
    set terminal postscript
    set output "TXTFILE.ps"
    unset key
    
    #set title "Titel"
    set xlabel "cy/px"
    set ylabel "SFR"
    (...)
    set grid
    
    plot "DATA.txt" using 1:2 smooth csplines w l ls 1,\
        "DATA.txt" using 3:4 smooth csplines w l ls 2
    #    EOF
    

    As you can see, it will plot the DATA.txt that you did just output. Use google for all of the previous on gnuplot scripts f.e.

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

Sidebar

Related Questions

Is it possible to put some data into gnuplot right on it's prompt? Like
Possible Duplicate: matlab - variable in plot title I would like to quote the
Is this possible to reproduce this lattice plot with ggplot2? library(latticeExtra) data(mtcars) x <-
Possible Duplicate: How do I visualize a matrix with colors and values displayed? I
I would like to know how to plot a correlation matrix similar to the
Is it possible to plot a matrix of scatter plots with ggplot2 , using
Possible Duplicates: Why is lock(this) {...} bad? In C# it is common to use
Is it possible to retrieve an automatically-generated plot range in Mathematica? For example, if
Possible Duplicate: How to choose the numbers shown on the axes of a plot
Is it possible to make a plot in matlab that does not actually take

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.