Changing line color on XY plot
This should be something really simple. I simple created a property node, set the active plot, and set the plot.color. What happens to some plots is the points change to my specified color and other stays as my background plot color which is white. I cant seem to get the line color to change with the point color. There are ways I can change it at run time, by right click on the plot and going into properties and setting line color in that tab.
What am I doing that I cant get this to work at runtime?
I attached the plot, just ignore all the missing VIs you should be able to see the problem.
Attachments:
SteadyStatePlot1.vi 350 KB
It works just fine here using LabVIEW 7.1. Could you do us a favor and make a mini demo, just containing the xy graph, some data for it, and the related property nodes to demonstrate your problem.
Overall comment on your VI:
Sorry, but I am absolutely horrified by your code. I cannot believe that you need all those property nodes, especially the signaling ones, they should be used very sparingly. (For example the FOR loops on top center and in the event called "clear all points" are just pumping hot air, repeating the same action and signaling (!!) every iteration.) It also just cannot be healthy if a single event calls tons of signaling properties, such as in the above mentioned event case. Then, in the timeout event, you are rewriting the plot la
bels and names every 10 ms. Do they really change that often???
Please let us help you in your overall program design. It will make a big difference in your future, more complex projects if certain common desing misconceptions are not propagated. I think entire sections of your program can be deleted without loss in functionality, the code can be stripped to <20% and the CPU usage can be reduce to <2% of the current situation. Just my wild guess.
The above is well meaning criticism, so don't take it personal. I am much harsher looking at my own early code from 8 years ago. :-) Good luck!
LabVIEW Champion . Do more with less code and in less time .
Similar Messages
-
CANT GET RID OF THE ARROW ON MYT LINE TOOL. CANT CHANGE LINE COLOR. HELP
CANT GET RID OF THE ARROW ON MYT LINE TOOL. CANT CHANGE LINE COLOR. HELP
And what are your settings? what system? What version of PS? You need to be more specific and explain better.
Mylenium -
I have Acrobat XI. I have drawn lines on a PDF. The default color is red. How do I change the color of the line?
You should be able to select a line, right-click (control-click), and select Properties. It's a bit easier if you show the Properties toolbar first by pressing command+E
-
Change line color in alv.(urgent)
Hello , i want the line color to change when my cursor change lines in an ALV.Thx
Hi,
Check this website
http://www.geocities.com/mpioud/Abap_programs.html
reward points if useful,
Regards,
Niyaz -
How can I change line colors in HTML reports?
I have a VI that is creating an HTML report based on a table of results. I change the back ground color of the line based on failed results. However this line color change is not seen in the HTML reports. Can anyone give me a good way of basically transferring the properties of my table to the HTML report? Is it possible? Thanks in advance for any help.
Greg - Thanks for the reply. I figured this out doing some more research. The line that I needed was "<BACKLOG="#PAYOFF">Your Cell Text</ID>. The problem I was having was that line is needed in front of the rest of the font formatting commands. For example here is my original line:
<ID WIDTH="200"><BACKLOG="#PAYOFF"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
The bold part in the line above is what I added. With the cell color added like this it actually created another cell and pushed existing ones one cell to the right. It then colored the second cell in the row and left the first one blank. Through looking up more examples I found that I was actually putting the cell color command in the middle of the font formatting command. So I tried putting it at the end and it then did nothing. The only way I could get the cell in the table to change and not change anything else was using the syntax below.
<ID BACKLOG="#PAYOFF"><WIDTH="200"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
Troy -
How to change line color in line graph
Hi,
I have one 'on change of' field and has three 'show value' fields.
Crystal has assigned default colors for these 3 lines..but i want to assign my own colors..is this possible?
and can we adjust the line thickness?
I am using crystal 2008 complete edition.
And i am using formulae for the 'show value' fields..so the legend is showing '@' sign..how to get rid if this?
Aprreciate any info...
Thanks,
PreethiIf you click on the lines themselves, it should highlight the specific line you clicked on.
Once the line is highlighted, right-click on the line and you should be able to "format the connector line" properties by changing the thickness, colour and type of line.
The same can be done for the titles of the chart, simply click on one of the titles, once it's highlighted you should be able to change the title names, font colour, font type etc.
--Lisinda -
Graphs- Line Type, How to change line colors
Hi,
Iam developing graph line type with 2 seriese by default it show two colors i.e Blue and Green . But i need red color for one of series. I checked in edit customization also i didnt find any option to change color of line . Pls helpme...
Thanks,
Krishna]Hi,
I think in global settings there is a option.
Refer this link
[customizing graphs|https://docs.google.com/viewer?a=v&q=cache:R1LWS-t_9xcj:www.sdn.sap.com/irj/scn/index%3frid%3d/library/uuid/c0bad079-1779-2c10-a8b1-ba76854ea6d1%26overridelayout%3dtrue+&hl=en&gl=uk&pid=bl&srcid=ADGEEShZuzUOlbxrVLkMLz511amV8K8seqKtGnfF-IXzNr_BRxDiNuT1OBIa0qCjD4Juf_RXul0iXYZJJpFM7foVU3oShbhRnQcFzCT637fSf7v5Qt2jJkHAZkFnfRSFOQZsoKLuatil&sig=AHIEtbRRDGjx1OANmLwZks8AmQfUMpGISQ
Karthik.R -
I work with very large visio drawings that are basically line drawings (network drawings) with text boxes indicating equipment location. We work in future and current drawings, future has colored lines indicating connection type and objects have text in
them that indicate if they are new by having red text. Current drawings have all black lines and black text.
Here's my dilemma, previously I would Ctrl+A and then change all text and all lines to black in Visio 2010, everything would change no problem. In Visio 2013 every text box now get's a black border around it, I've tried selecting all text boxes at once
and trying to remove the line but no luck.
These drawings are HUGE and it takes me a good hour just to change between future and current where previously it took me seconds. I have many coworkers and we're all experiencing he same issue with the move to 2013.
Is there a macro or some vb script I can utilize to select all text boxes and remove the black outline?
Hope you can help!try this macro
Sub Simple()
Dim sh As Shape, counter As Integer
ActiveWindow.SelectAll
For counter = 1 To ActiveWindow.Selection.Count
Set sh = ActiveWindow.Selection(counter)
If Len(sh.Text) > 0 Then sh.Cells("Geometry1.Noline").FormulaU = "IF(LEN(SHAPETEXT(TheText))>0,1,0)"
Next
MsgBox "All text borders set invisible"
End Sub
if in your drawings you have only lines and text label (NOT rectangles, circles and other shapesconteined text for example) this macro can help ! -
How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?
How to let the user define the colors for each plots in the graph (I
use LabVIEW 7)?Hi,
Take a look at this example, it uses property nodes to select tha
active plot and then changes the color of that plot.
If you want to make the number of plots dynamic you could use a for
loop and an array of color boxes.
I hope this helps.
Regards,
Juan Carlos
N.I.
Attachments:
Changing_plot_color.vi 38 KB -
how can I change line color in JTable.
Then you need to do custom painting. Something like:
JTable table = new JTable(...)
public void paintComponent(Graphics g)
super.paintComponent(g);
g.setColor( Color.RED );
int y = getRowHeight(0) - 1;
g.drawLine(0, y, getSize().width, y);
}; -
Can Table Control alternate on line color?
Is it possible to change line color on Table Control? I would like the lines on the Table Control to alternate in color as to make it easier to read the data. I tried using screen-intensifed but that changes the color on a column, I need to make every other row stand out.
Thanks
Edited by: Gary Morman on Mar 11, 2010 9:17 PMALV Grid is editable if using the CL_GUI_ALV_GRID class. See programs which start with BCALV_EDIT*
Regards,
Rich Heilman -
Hello
I have three vector plotting using polar plot.vi the problem is when I tread to shift the line color, only use black, I need three diferents colors any suggestion?. I put a picture with my block diagram.
I would like too chance the line width how to I can realice this using mi VI?
thanks
DaniloAbel_Souza wrote:
Hi Danilo,
I think you can use color box contants in a case structure, each case sent one color constat, so you can select colors when you select a case on case structure.
Regards,
Well that is part of the story but the picture input tunnel should be changed to a SR if you wnat more than one plot.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Change the color of the outer line of a shape
Hello I'm trying to create a rectangle with a red border and no inside fill. It's only to highlight some text of a bank form.
I know i have to right click the layer and choose blending options and stroke. But I've tried to change the color so many times and no matter what I do, the outer line remains gray and with rounded corners.
I want the corners of the rectangle to be squared, not rounded but I'm having a hard time changing this.
Please help
I'm using Photoshop CS3
thank you
Could anyone please show a picture of where to change the color of the outer line? I've tried everything.Hi,
With Ps CS3, you'll probably want to define a Layer Style for a Stroke and then use that with the Square Shape Layers.
This is a Stroke of 4 px, 'Centered' (so a very slight corner rounding on the outside edge. 'Inside' will give you square corners for both inside and outside edges). To change the color of the stroke, go to Layer> Layer Style> Stroke and change the color by clicking on the color bar.
regards,
steve -
Changing the color of a Basic line object nested in a table cell
Can anyone help me out here...I have inserted a line object from the Basic palette into a table cell on my web page and it displays fine but is default black color...I would like to change the color but haven't been successful in doing so..any ideas
Hmm - doesn't sound right.
"color=#hex" is not appropriate HTML markup.... Can you show us where you
made this change?
Murray -
How can I change the color of plot in a waveform chart and graph?
There are 4 plots in a waveform chart, from plot0 to plot3, and I want to chang the color of plots dynamicly up to my needs when the VI is running.
For example, as show in the picture, i want to set the plot0 as RED, and plot1 is BLUE, plot2 is YELLOW, plot3 is GRAY.
If there is only one plot, i can change it's color, however when there are more than one plot, it fail.
How can I do it?
Thanks
Attachments:
waveform.JPG 61 KBHello MilkyStone,
first you have to set the active plot, then change its color (or other properties). All that is done using property nodes.
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Maybe you are looking for
-
LG Revolution missing Text Messages
Moved for greater exposure
-
Issue in Material Determination and Delivery Block
Hi, I have an issue while changing a Sale Order. When I clear a particular block in VA02, the manual pricing conditions that were entered in VA01 are deleted and document becomes incomplete again. This happens only to the child material in a material
-
Greetings... How to make the setting for allowing deciaml points usage . Now i want to use the qty as 0.006 KG for (60 gm) in BOM, But system giving me error as "Input must be in the format .__.___.__~,___V Edited by: SAP PP on No
-
Well I have a new macbook pro and there is a software update available and after i update it, it keeps asking for the same thing to update over and over again! What can be done?
-
Reinstall Acrobat 8 Professional, Macintosh
Acrobat 8 Professional, Macintosh I have my license and I need to reintall due to a hard drive failaure. (I am reinstalling all my software.) I can not find a link to download. Thanks