cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

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