cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lala
Level IX

How can change a black solid horizontal line to a black dashed line and change the transparency to 0.5

How can change a black solid horizontal line to a black dashed line and change the transparency to 0.5

Thanks!

    Pen Color("black");
    Line({:test1[i] - bb, :test2[i]}, {:test1[i] + bb + 500 * (2 * bb), :test2[i]});
4 REPLIES 4
lala
Level IX

Re: How can change a black solid horizontal line to a black dashed line and change the transparency to 0.5

It didn't work

 

Pen Color( "black" );
seg = Line( {:test1[i] - bb, :test2[i]}, {:test1[i] + bb + 500 * (2 * bb), :test2[i]} );
seg << Set Line Style( "Dotted" );
seg << Set Transparency( .3 );
txnelson
Super User

Re: How can change a black solid horizontal line to a black dashed line and change the transparency to 0.5

The setting of line style is easy.  I am not seeing how to set the transparency for the line.

names default to here(1);
dt = new table("example",
	new column("test1",values([5])),
	new column("test2",values([10]))
);
bb=1;
i=1;
nw=new window("test",
	gb=graph box(
		Pen Color("black");
		line style("dashed");
		Line( {:test1[i] - bb, :test2[i]}, {:test1[i] + bb + 500 * (2 * bb), :test2[i]} );
	)
);

The line does not seem to have any segments that would allow for changing the transparency.  Maybe some other member has a solution.

Jim
lala
Level IX

Re: How can change a black solid horizontal line to a black dashed line and change the transparency to 0.5

Thank Jim!

 

I try this

    Pen Color("black");
    Line({:test1[i] - bb, :test2[i]}, {:test1[i] + bb + 500 * (2 * bb), :test2[i]}  ,{ Line Style( "Dotted" ) , Transparency( 0.5 ) });
txnelson
Super User

Re: How can change a black solid horizontal line to a black dashed line and change the transparency to 0.5

excellent

Jim

Recommended Articles