Plotting on a grid

ok so here's a ? I need to plot things according to there coordinates (x,y) on a map it won't always be the same map...how can i get a map that is a .jpg image to be seen as a coordinate plane? any suggestions would be great

Changes to the native behaviour of LV objects is seldom simple. If I was forced to do this I would try to take advantage of the background image that is now available in LV 8.+
So maybe two graphs.
1) only has your plots.
2) Use the image from #1 and slips itno its background leaving the grid lines on top.
Boy would that be a lot of work to make it work, particularly if you wanted to maint zooming, auto-scales and plot properties!
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Polar grids in XY grpah (just like default rectangular grids)

    I want to plot a realtime data of voltage vs time in polar format. I want the polar grids to be dynamic (for eg., rectangular grids in XY graph, which change as I zoom the XY Graph). 
    I have tried "polar plot with points function" and XY graph. I have been successful in plotting the graph. But zoom functionality is very high priorty as it could be hours of data on same polar plot.
    Problem with "Polar Plot function":-
    It gives output as picture unlike XY Graph. I haven't been able to zoom this picture output as we do with XY Graph.
    Problem with "XY Graph Function":-
    I plot the static grid. I plot the real time graph too, but independently. When I try to plot realtime on static grid that I made, it erases the grid and only plot remains. If I try to bundle this realtime plot with other static plots (grids) and plot it just plots it as a static against the grid.
    I am attaching my files please take a look. I am using LabVIEW 2013.
    I have read many forum discussions on this forum bu they don't solve my problem. I am stuck in this problem since some days now, so any help would be appreciated. Its my first post at this forum, so any feedback on my post too will be appreciated.

    Okay, document here how you solved your problem, so later someone with a similar problem can find it.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Help required with multiple buttons

    Hi all, i'm working on a charity project that entails the clicking of buttons in order to purchase a "virtual plot" on a grid system.
    There are hundreds of buttons involved.
    What I need to know are the following :
    a) Is there a way for me to set the actionscripting to a "parent" button then multi copy the button around the grid maintaining the scripting.
    b) When a button is clicked, it goes out to paypal, is there a way to AUTOMATICALLY disable the button once the transaction takes place
        and the user gets re-directed back to the website.
    c) When different buttons are clicked, is there a way to only have the URL of the last clicked button open up......in other words not have a whole
        load of different pages to the same paypal account open. (EG. If I click 20 buttons, I don't want 20 links to paypal open, only the last clicked button)
    I guess there is quite a bit of information I'm looking for help with but I am fairly new to Actionscript. Any help at all is greatly appreciated.
    Many thanks in advance.
    Ray

    a) Is there a way for me to set the actionscripting to a "parent" button then multi copy the button around the grid maintaining the scripting.
    yes, but that's probably not what you want because each button will do exactly the same thing (unless you encode an if-statement that takes different actions based on the objects instance name).  you'll probably want to use a for-loop to encode your buttons so you don't have much typing to do.
    b) When a button is clicked, it goes out to paypal, is there a way to AUTOMATICALLY disable the button once the transaction takes place
        and the user gets re-directed back to the website.
    yes, as long as you setup flash and paypal to communicate when a transaction is completed.
    c) When different buttons are clicked, is there a way to only have the URL of the last clicked button open up......in other words not have a whole
        load of different pages to the same paypal account open. (EG. If I click 20 buttons, I don't want 20 links to paypal open, only the last clicked button)
    yes, but flash needs some way to determine a user has made the final choice.

  • Is there a way to flip the Y axis in Illustrators CC?

    I'm working on a project that can be plotted on a grid and I'm just wondering if its possible to flip the Y axis so that the positive numbers are going up and the negatives are going down. 

    qwotis,
    If the link from Doug fails to do it, you may (hopefully) manually change the relevant preference settings as follows:
    0) Close down Illy (you can only change the preference file with Illy closed);
    1) Find and open the AIPrefs (Win speak) or Adobe Illustrator Prefs (Mac speak) file withe a text editor like Notepad or TextEdit; the preference file is a (hidden) file in the (hidden) folder Adobe Illustrator CS5 Settings
    2): Find and change the following two bits of code:
    /isRulerOriginTopLeft 1 >>> /isRulerOriginTopLeft 0 (change 1 to 0)
    /isRulerIn4thQuad 1 >>> /isRulerIn4thQuad 0 (change 1 to 0)
    This is a global change so you only have to do it once (just as you can undo it once).
    You may find the preference file here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html

  • Simple Graphing Calculator with 2D array

    Hello,
    I am building a simple graphing calculator which reads in coefficients from a txt file. All is going well except when I plot the points, the graph is at the corner of the screen and sideways. As we all know, the origin of the array is at the top right corner, so how do I transform/slide it so that it is at the xy origin? Code is posted below, thanks!
    import javax.swing.*;
    import java.awt.*;
    public class baseClass extends JFrame{
         private shapesPanel panel;
         public baseClass(String title){
              panel = new shapesPanel();
              setTitle(title);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              getContentPane().add(panel);
              pack();
              setVisible(true);
         public void drawLine(int x1, int y1, int x2, int y2){
              panel.addLine((short)x1,(short)y1,(short)x2,(short)y2);
              panel.repaint();
         public void drawDot(int x, int y){
              panel.addOval((short)x,(short)y,(short)1,(short)1);
              panel.repaint();
         private class shapesPanel extends JPanel{
              final private short max = 10000;
              private short[][] lines, ovals;
              private int numLines, numOvals;
              public shapesPanel(){
                   setBackground(Color.white);
                   setPreferredSize (new Dimension(500,500));
                   lines = new short[max][4];
                   ovals = new short[max][4];
                   numLines = 0;
                   numOvals = 0;
              public void paintComponent(Graphics g){
                   super.paintComponent(g);
                   g.setColor(new Color(0,0,255));
                   for(int i = 0; i < numLines;++i){
                        g.drawLine(lines[0],lines[i][1],lines[i][2],lines[i][3]);
                   g.setColor(new Color(255,0,0));
                   for(int i = 0; i < numOvals;++i){
                        g.drawOval(ovals[i][0],ovals[i][1],ovals[i][2],ovals[i][3]);
              public void addLine(short x1, short y1, short x2, short y2){
                   lines[numLines][0] = x1;
                   lines[numLines][1] = y1;
                   lines[numLines][2] = x2;
                   lines[numLines][3] = y2;
                   ++numLines;
              public void addOval(short x, short y, short w, short h){
                   ovals[numOvals][0] = x;
                   ovals[numOvals][1] = y;
                   ovals[numOvals][2] = w;
                   ovals[numOvals][3] = h;
                   ++numOvals;
    import java.util.Scanner;
    import java.io.*;
    public class graphingCalculator extends baseClass{
         // CONTAINS THE FOUR FUNCTION COEFFICIENTS
         private double[] theFunction;
    // CONTAINS THE DISCRETE FUNCTION PLOT
    private boolean[][] grid;
    // SIZE OF THE COORDINATE SYSTEM
    private final int columns = 500, rows = 500;
    public graphingCalculator(String filename) throws IOException{
         // INITIALIZATIONS ///////////////////////////////////////
    super("GRAPHING CALCULATOR");
    theFunction = new double[4];
         grid = new boolean[rows][columns];
    for(int i = 0;i<rows;++i){
    for(int j = 0;j<columns;++j){
    grid[i][j] = false;
    // DRAW THE COORDINATE SYSTEM ON THE SCREEN /////////////
    drawLine(0,250,500,250);
    drawLine(250,0,250,500);
    for(int i = 0; i < columns;i+=20){
    drawLine(i,247,i,253);
    for(int i = 0; i < rows;i+=20){
    drawLine(247,i,253,i);
    // GET THE FUNCTION COEFFICIENTS ///////////////////////
    // theFunction[0] will have the x^3 coefficient
    // theFunction[1] will have the x^2 coefficient
    // theFunction[2] will have the x^1 coefficient
    // theFunction[3] will have the x^0 coefficient
    Scanner scan1 = new Scanner(new File(filename));
    for(int i=0;i<4;++i){
         theFunction[i] = scan1.nextDouble();
    scan1.close();
    // DRAW THE FUNCTION ////////////////////////////////////
    computeGrid();
    drawDiscrete();
    drawContinuous();
    private double computeFunction(int x)
         double a=theFunction[0];
         double b=theFunction[1];
         double c=theFunction[2];
         double d=theFunction[3];
         double answer=(a*Math.pow(x,3.0)+b*Math.pow(x,2.0)+c*Math.pow(x,1.0)+d*Math.pow(x,0.0));
         return answer;
    private void computeGrid()
              // Populate the 'grid' array with true values that correspond
              // to the discrete function.
              // The 'grid' array is the internal representation of the function
         for(int x=0; x<columns; x++)
                   if(computeFunction(x)>=0&&computeFunction(x)<500)
                   grid[(int)computeFunction(x)][x]=true;
    private void drawDiscrete()
              // Use drawDot(x,y) to draw the discrete version of the function
         for(int x=0;x<columns;x++)
              for(int j=0;j<rows;j++)
         if(grid[x][j])
              drawDot(x,j);
    private void drawContinuous()
              // Use drawLine(x1,y1,x2,y2) to draw the continuous version of the function

    Rest of code:
    import java.util.Scanner;
    import java.io.*;
    public class Main {
        public static void main(String[] args) throws IOException{
        String infile;
        Scanner scan = new Scanner(System.in);
        // The input file should have 4 doubles in it
        // corresponding to the 4 coefficients of a cubic function.
        // A GOOD EXAMPLE:
        //                  0.01
        //                  0.0
        //                  -5.0
        //                          50.0
        // CORRESPONDS TO FUNCTION: 0.01*X^3 - 5.0*X + 50.0       
        // ANOTHER GOOD EXAMPLE:
        //                  0.0
        //                  0.01
        //                  -1.0
        //                          -100.0
        // CORRESPONDS TO FUNCTION: 0.01*X^2 - X - 100.0       
        System.out.println("Please enter filename of input file: ");
        infile = scan.next();
        graphingCalculator cal = new graphingCalculator(infile);
    }

  • 3D Meshing with XYZ using a 3D curve graph

    I am currently trying to real time plot X-Y grid co-ordinates against 'z' depth (for mapping a lake). I've got a 3D curve graph plotting XYZ points but I need it to mesh the sub-surface to create an image of the lake bed. The 3Dmesh example talks of a w-vector which is visible when you enter the 3Dcurve vi though I don't know what to do with it. Any help would be appreciated.

    Nothing that advanced I'm afraid, I'm using LabView 6i for the first time so no G math code. I've simply got three strings of data latitude position, longitude position and depth for the outer perimeter of a lake. These are read into a 3D curve graph and plotted with 1)just XY and 2)XYandZ as points within the graph. I can get these joined up as shown in the attached VI and by double clicking on the 3D surface VI I can change the property node labelled Plot3D curve to Plot3D mesh. However when you do this (when it doesn't come up with an error) it plots a random mesh, not the intended squares that I am looking for. Ideally I want it eventually created a 3D image of the surface and sub-surface of the lake as the data is fed in as XYZ every second in r
    eal time. I've seen what it's capable of in the graph properties; when you click add plots in the plots tab of properties it shows exactly what I'm after as some default function
    I've attached what I've done so far (not very impressive I know) but hopefully it illustrates what I am trying to do. Thankyou
    Attachments:
    3D_Plot_test.vi ‏56 KB

  • Hide Scatter Plot Grid

    Hello.
    How do you hide the grid in a scatter plot?
    I think there must be a simple way of doing this
    but I just can't find it.
    Thanks,

    Once you have it enabled for an account, and provided that you also have it for at least one scenario, you right click on a cell and select "Cell Line Item Detail". You fill in "Detail" and amount and once you save it sums up for you the amounts on the same cell.
    Edited by: antsar on Jan 19, 2012 3:38 PM

  • Plot fill hides the grid.

    I want to use color regions on my graph. But, if I use a background image, it doesn't adjust with the scale.
    If I use plot fill and create data arrays for my boundaries, it hides the grid.
    Does anyone know how to accomplish this? (see attached pictures)
    Attachments:
    NI Waveform Graph.png ‏66 KB
    No Grid.png ‏28 KB

    Here are some options, although I don't particularly like any of them. I think I would go with one, because it's the simplest:
    Use the BG image, but generate it yourself so that it matches the scale. To do this, you can call the Map Coords to XY method of the graph, which will tell you the size in pixels of each region, which can then be used to build the picture using the picture VIs. The main reason I don't like this is that it's not entirely clear when to do this (when new data comes in, when the user changes the scale, etc.) and that it depends on the data being displayed before you can get the correct values. These can probably be handled if you do this in a loop every N ms and if you defer updates before writing the data to the graph.
    Use the picture control VIs to build the entire graph. Then, you can simply draw the scale on top of the BG. There's a palette of VIs for drawing graphs.
    Use .NET controls. There's an example of using a chart library in the UI interest community.
    Use a 3D picture control, which I believe supports transparency. I'm not sure how easy it would be to construct all the graph pieces.
    Try to take over the world!

  • Custom Y-grids for multi-plot graphs

    How do I get the Y-axis gridlines to change for a given Y-axis (I have three)? As it is now, I have different scales for each Y-axis and the gridlines for all of them are displayed at the same time. This makes the graph very messy and it is difficult to discern which plot goes with which gridline.

    The way a multiplot graph is displaying scales is a bit curious.
    It's true a graph displys all scales at the same time, so if the various Y scales are different the display is confusing as you said.
    I suggest you some workarounds.
    First of all, arrange all Y axis in order to have the same or multiple scale so that all grid lines are equally spaced.
    Second, display the same lines for all Y scales (customizing the tabs as Alberto says).
    Third, display grid lines for different Y axes with different colors (maybe choosing pastel colors for grid lines and the same but bright color for plots).
    Fourth, hide all grid lines but one. It seems that this built-in option works in a curious way: if you have a black graph background you can see some pixels painted along X grid
    lines where Y grid should lie, and if you have another color background you can see the complete but 'hided' grid lines, as if they were painted in black instead of transparent. So I suggest you to use for grid lines the same color as graph background : that way the Y axis grid lines are effectively hided.
    Hope this helps
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Plotting 4D data (3D scanning grid)

    Hello,
    I'm looking for a bit of advice on how to best proceed with my LabVIEW application.
    My application typically consists of an XYZ positioner that scans an area of 10x10x10 mm and measures every 0.1 mm in each of the 3 axes.
    In total I have 100*100*100 points equally distributed in a 3D grid.
    For each of these points an intensity value is being acquired by the data acquisition hardware.
    I now want to visualize this data. I was thinking of doing it via a 3D graph but could not find a suitable example. Most of the 3D graph examples show a few points scattered in 3D. I have a real 100x100x100 matrix that I want to visualize...
    Any idea how to do this with a 3D graph.
    You could say that I am looking for a 3D intensity graph.
    The only solution I can imagine is that I let the user select a single intensity value and only display that intensity value in the 3D graph.
    Does any of you know a good way to display all the intensity values in a 3D matrix inside a 3D graph.
    Your expert advice is greatly appreciated!
    Kind regards,
    Kirsten!

    Ok, so here is a quick proof of concept of a 3D Bubble Graph. As a static picture it is just about okay, but if you run the vi you can grab with the mouse and rotate the plot to really see the ball distrubution. This is just 10 *10*10 but it should scale and you can add colours as well, or colours instead of ball size, or whatever.
    The vi is a bit messy but demonstrates the concept.
    Attachments:
    main.vi ‏27 KB

  • How can I change the Y-axis (circular) grid spacing, in Polar Plot VI?

    When using Polar Plot VI, I need more control over the plotting parameters. This means tweaking the sub-VIs in various ways. What I need to do most is make the polar magnitude axis less busy, i.e. only draw circles every 10 instead of every 5 divisions, when using a range of 0 (outermost) to -80 (innermost).
    The magic 'magnitude axis subdivisions' variable seems to be generated in Calc Scale Specs sub-VI, and output as an array of clusters, but I can't quite see how it's created and from what.
    Please can anyone help me gain control over the number of magnitude division circles generated?
    Many thanks!

    I think if you go inside the Calc Increment.vi and modify the Increment output terminal it might change what you want to see. Try putting a multiply by 5 or ten into the case structure for when the log is false.
    Attachments:
    polar plot calc increment.jpg ‏90 KB
    modify calc increment.jpg ‏104 KB

  • 3D parametric plot grid control

    I am trying to map data onto a 3D parametric surface that looks like an ellipsoid. I need the ellipsoid to be "divided" in 36 slices. I was able to draw the ellipsoid and map the data but the grid slices the object in 72 slices vertically (see attached file). In the program I'm specifying the total steps in theta coordinate to be 36 so I don't know where the problem is. Any idea?
    Attachments:
    test.vi ‏169 KB

    I solved the problem: the range of the angle I used to describe the ellipsoid (inner FOR loop) should be from -90deg to 90deg instead of 0 to 360 deg, otherwise when I produce the rotation of the ellipse along the azimuthal angle theta between 0 and 360 deg (outer FOR loop) it will overcreate the surface by 180 deg. See attached correct file.
    Attachments:
    Plot_map_on_cav_surface_old.vi ‏139 KB

  • Plot X v's Y grid points, each having a colour determined by a third variable (In LV4!)

    LV4 does not support new library files. The xyz chart needs to be presented in real time, and leave tracks.
    Any diagrams or suggestions will save much of my hair.

    Thanks, this seems to be more promising than the intensity chart. What I meant by tracks is to have all previous data points displayed, as in leaving tracks behind. Also I am getting a line from the origin, but I need only the data point displayed with the appropriate colour, (and to have it stay visible). Which brings me to my last Q, how do i select different colours for different numbers?
    Cheers

  • Need to help in alv grid graph

    Hi All,
       I made alv grid report.I put graph button in screen using pf status(&graph).
    Now when I execute the report output come and my graph button is also working fine.But when I click
    the graph button, the graph shows defalut column wise.Now I right click on graph and select chart type and then select LINES wise then graph shows LINES wise. Can we do default LINES wise so that
    when I click on graph button then it should come LINES wise default.
    Thanks,
    Rakesh

    HI,
    You can do this using the FM GFW_PRES_SHOW
    Check the sample program : DEMO_GFW_PRES_SHOW.
    For more infomation:
    refer to links:
    Re: How to plot graph in ALV?
    http://help.sap.com/saphelp_erp2005/helpdata/en/7e/daf830b46411d2961200a0c9308b1f/frameset.htm
    hope this infromation helps you.
    Thanks!

  • How can i dynamically varie the location and number of major grids in XY graph.

    Hi All,
        I'm supposed to plot some statistics in X-Y graph with x-axis scaled on time stamps. The plot generated has only one  major grid. Can I have a control over the location and number of major grids dynamically?
    Thanks,
    Saravanan.T 

    Hi Saravanan,
    use a property node "X scale.Range.Increment" to set the spacing of the major grid...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • New voice to text feature glitch on iPhone 6?

    So when you use the microphone button to send a voice text is it supposed to show up as a seperate text?  For example under my messages I have my husband.  If he voice texts me than a new message thread pops us under his name and the voice texts are

  • 4 pin Firewire to 9 Pin Firewire

    Is it possible to connect a camcorder to my new iMac with a 4 pin to 9 pin cable? I have the cable but the iMac won't regognize the camcorder.

  • Component as a configurable material KMAT?

    Hello Gurus, to be more clear with my question, I try to explain it by an example: A characteristic value assignment is made while busy with a sales order creation (VA01) for a configurable material SHOWER CUBICLE (material type KMAT). One of the cha

  • Photoshop crash?

    I just got Adobe Photoshop CC 2014 a few days ago to edit my watermarks and thumbnails for YouTube. As soon as it finished installing, i tried to open it up and it said  Adobe Photoshop CC 2014 has stopped working. Here is the problem details. Proble

  • Can't export to camera, yet computer sees camera

    On attempting an export to cam, I get a message saying " imovie lost its connection to the video camera. Please check the connections and try again" Previously I have been able to export my imovie projects to camera no problems. I am using my old G4