Discussion:
how to specify solid style in -W option?
Mikhail Tchernychev
2014-06-27 04:21:16 UTC
Permalink
Hi,
For some reason when I use -W with no style I am getting dashed lines.
Perhaps this is remains from some other command. My question is how
can I specify solid (not dashed) style as part of -W ?

I am using  something like that

-Wthin,red,solid

and it does make solid line, but I think it's only because style definition
is not correct.

What is the right way?

Thank you!

Mikhail Tchernychev

Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Paul Wessel
2014-06-27 04:24:04 UTC
Permalink
I am sure "solid" is taken as some misformed dashed line command. The syntax is

-W[width[c|i|p]],[color],[style[c|i|p|]]

so if you want solid you simply specify no style, i.e.

-Wthin,red

-p
Post by Mikhail Tchernychev
Hi,
For some reason when I use -W with no style I am getting dashed lines.
Perhaps this is remains from some other command. My question is how
can I specify solid (not dashed) style as part of -W ?
I am using something like that
-Wthin,red,solid
and it does make solid line, but I think it's only because style definition
is not correct.
What is the right way?
Thank you!
Mikhail Tchernychev
Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Mikhail Tchernychev
2014-06-27 04:26:11 UTC
Permalink
I agree. But when I have no style, I get dashed line...


At least in my case.

What gmt.conf variable could cause it?

 

Best Regards,

Mikhail Tchernychev


On Thursday, June 26, 2014 9:24 PM, Paul Wessel <***@HAWAII.EDU> wrote:



I am sure "solid" is taken as some misformed dashed line command.  The syntax is

-W[width[c|i|p]],[color],[style[c|i|p|]]

so if you want solid you simply specify no style, i.e.

-Wthin,red

-p


On Jun 26, 2014, at 6:21 PM, Mikhail Tchernychev <0000005ea0d77e16-dmarc-***@LISTS.HAWAII.EDU> wrote:

Hi,
Post by Mikhail Tchernychev
For some reason when I use -W with no style I am getting dashed lines.
Perhaps this is remains from some other command. My question is how
can I specify solid (not dashed) style as part of -W ?
I am using  something like that
-Wthin,red,solid
and it does make solid line, but I think it's only because style definition
is not correct.
What is the right way?
Thank you!
Mikhail Tchernychev
Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Mikhail Tchernychev
2014-06-27 04:30:40 UTC
Permalink
I think I found a reason. I have statement before

gmtset MAP_DEFAULT_PEN 0.2p,255/0/0,4_8:2p

which makes dashed line, and using -W without a style

still keeps old dashed style.

Shouldn't -W completely define a pen?

I shall get rid of  MAP_DEFAULT_PEN and use
-W option for all calls.

 
Best Regards,

Mikhail Tchernychev


On Thursday, June 26, 2014 9:26 PM, Mikhail Tchernychev <***@yahoo.com> wrote:



I agree. But when I have no style, I get dashed line...


At least in my case.

What gmt.conf variable could cause it?

 

Best Regards,

Mikhail Tchernychev


On Thursday, June 26, 2014 9:24 PM, Paul Wessel <***@HAWAII.EDU> wrote:



I am sure "solid" is taken as some misformed dashed line command.  The syntax is

-W[width[c|i|p]],[color],[style[c|i|p|]]

so if you want solid you simply specify no style, i.e.

-Wthin,red

-p


On Jun 26, 2014, at 6:21 PM, Mikhail Tchernychev <0000005ea0d77e16-dmarc-***@LISTS.HAWAII.EDU> wrote:

Hi,
Post by Mikhail Tchernychev
For some reason when I use -W with no style I am getting dashed lines.
Perhaps this is remains from some other command. My question is how
can I specify solid (not dashed) style as part of -W ?
I am using  something like that
-Wthin,red,solid
and it does make solid line, but I think it's only because style definition
is not correct.
What is the right way?
Thank you!
Mikhail Tchernychev
Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Remko Scharroo
2014-06-28 07:44:09 UTC
Permalink
Hi Mikhail and GMT developers,

I see the point. There should be a way in -W to overrule the dashed style of MAP_DEFAULT_PEN

In the man page of "gmt" it properly says about width, color and style:
"If any of the attributes is omitted their default or previous setting will be retained."

So, indeed that's happening to Mikhail, and he has no way to select "solid".

Mikhail, can you please add this as a bug report on the GMT bug tracker: http://gmt.soest.hawaii.edu/projects/gmt/issues

Then we can be sure it is not forgotten ...

Cheers,
Remko
Post by Mikhail Tchernychev
I think I found a reason. I have statement before
gmtset MAP_DEFAULT_PEN 0.2p,255/0/0,4_8:2p
which makes dashed line, and using -W without a style
still keeps old dashed style.
Shouldn't -W completely define a pen?
I shall get rid of MAP_DEFAULT_PEN and use
-W option for all calls.
Best Regards,
Mikhail Tchernychev
Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Mikhail Tchernychev
2014-06-28 17:30:46 UTC
Permalink
Hi All,

I created the issue as requested. Just a suggestion.

 
Best Regards,

Mikhail Tchernychev


On Saturday, June 28, 2014 12:45 AM, Remko Scharroo <***@ME.COM> wrote:



Hi Mikhail and GMT developers,

I see the point. There should be a way in -W to overrule the dashed style of MAP_DEFAULT_PEN

In the man page of "gmt" it properly says about width, color and style:
"If  any  of the  attributes is omitted their default or previous setting will be retained."

So, indeed that's happening to Mikhail, and he has no way to select "solid".

Mikhail, can you please add this as a bug report on the GMT bug tracker: http://gmt.soest.hawaii.edu/projects/gmt/issues

Then we can be sure it is not forgotten ...

Cheers,
Remko
Post by Mikhail Tchernychev
I think I found a reason. I have statement before
gmtset MAP_DEFAULT_PEN 0.2p,255/0/0,4_8:2p
which makes dashed line, and using -W without a style
still keeps old dashed style.
Shouldn't -W completely define a pen?
I shall get rid of  MAP_DEFAULT_PEN and use
-W option for all calls.
 
Best Regards,
Mikhail Tchernychev
Mailing list for GMT discussions of all kinds.  If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Continue reading on narkive:
Loading...