简体   繁体   中英

Scatter Plot with ILNumerics graphical issue?

I'm currently trying to plot a few points on a 3D plot window using ILNumerics. This works actually quite good but as soon as I rotate the plot it cuts off the labels in the background...

Here is my code

        float[,] a = new float[2, 3] { { 1.0f, 2.0f, 3.0f }, { 1.0f, 2.0f, 3.0f } };
        ILArray<float> B = a;

        var scene = new ILScene {
            new ILPlotCube(twoDMode: false) {
                new ILPoints {
                    Positions = B,
                    Size = 4,
                }
            }
        };

        ilPanel1.Scene = scene;

This is an image of whats happening:

https://www.dropbox.com/s/gd2cqzsp8kqc8d5/plot.png

I hope you guys have a suggestion for this problem... Thanks in advance!!

After any modification of buffer data Configure() needs to be called on the affected node or any node on the path up to the root node. The only exception to that rule: if your code rests in the load event handler for the ILPanel, ILNumerics calls this for you automatically.

Obviously, your code is defined somewhere else - not in that handler. So you must follow the common rule and add ilPanel1.Scene.Configure() manually.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM