Skip to content
\n

Of course I should also share the data here:

\n

values.txt

\n

You can load the data file like:

\n
var lines = File.ReadAllLines(\"values.txt\");\nvar length2 = lines[0].Split(',', StringSplitOptions.RemoveEmptyEntries).Length;\n\nvar values = new double[lines.Length, length2];\nfor(int i = 0; i < lines.Length; i++)\n{\n    var split = lines[i].Split(',', StringSplitOptions.RemoveEmptyEntries);\n    for(int j = 0; j < split.Length; j++)\n    {\n        values[i, j] = double.Parse(split[j]);\n    }\n}
\n

Then the previous program will generate a image like:

\n

\"test\"

\n

It seems 'ugly', but in general it's what a spectrum should be. However these horizontal lines are not expected:

\n

\"image\"

\n

I have also tried to manually modify the values (this change is included in the previous data file). But it doesn't work. (1 is the biggest value in the array. So there is expected to be a yellow line, but it's still blue.)

\n

\"image\"

\n

So... have I did something wrong? Thanks for help in advance.

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

It's a problem in my other steps... And... [511, 0] will be drawn to the bottom left corner (0, 0) rather than 0, 511

","upvoteCount":1,"url":"https://github.com/oxyplot/oxyplot/discussions/2065#discussioncomment-8628048"}}}
Discussion options

You must be logged in to vote

It's a problem in my other steps... And... [511, 0] will be drawn to the bottom left corner (0, 0) rather than 0, 511

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@VisualMelon
Comment options

@yueyinqiu
Comment options

Answer selected by yueyinqiu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants