Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: st: Catplot (ssc) labelsize in scheme? Stata 11
From
"Kaulisch, Marc" <[email protected]>
To
<[email protected]>
Subject
AW: st: Catplot (ssc) labelsize in scheme? Stata 11
Date
Tue, 11 Oct 2011 09:43:49 +0200
Nick,
I can change the value of gsize label from vsmall or huge, but everytime the labsize in the graph medsmall. My scheme is a modification of s2color.
Changing labsize manually under var2opts works perfectly...
My code uses the following options:
percent stack asyvars scheme l1title legend and ytitle
I cannot see why these would intervene into the scheme...
Puzzled...
Marc
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Nick Cox
Gesendet: Dienstag, 11. Oktober 2011 00:31
An: [email protected]
Betreff: Re: st: Catplot (ssc) labelsize in scheme? Stata 11
Find
scheme-s2color.scheme
and the line
gsize label medsmall
Nick
On Mon, Oct 10, 2011 at 10:27 PM, Nick Cox <[email protected]> wrote:
> You are correct in implying that -catplot- just lets -graph hbar | bar
> | dot- choose defaults for labelsize.
>
> Similarly, there is no machinery in -catplot- affecting bar width. In
> practice, it seems that tuning the gaps is the best way of changing
> the widths.
>
> e.g.
>
> sysuse auto
> catplot rep78
> catplot rep78, var1opts(gap(0))
> catplot rep78, var1opts(gap(2))
>
> In general, -catplot- is mainly a wrapper that calculates frequencies
> or percents and then lets -graph- do almost all the work.
>
> I've not devoted much time to knowing my way around the scheme files.
>
> Nick
>
>
> On Mon, Oct 10, 2011 at 10:11 PM, Kaulisch, Marc
> <[email protected]> wrote:
>> Nick,
>>
>> A similar question to my previous one regarding ciplot (ssc). Everytime I call -catplot- (ssc) the labelsize is medsmall. My programming skills are zero but in the catplot.ado I cannot find a specification of labsize; so in contrast to my earlier question, I think I am able to control the labelsize in a scheme. But where?
>>
>> Another way around, would there be a possibility to align actual bar
>> height/width with labelsize (in catplot)
>> - Is barwidth working with catplot?
>>
>> Thanks!
>>
>>
>> Marc
>>
>> P.S.: @David Radwin: Thanks for pointing me to the "Visual Guide", but it is in the office and I am far away from it...
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: [email protected]
>> [mailto:[email protected]] Im Auftrag von Nick Cox
>> Gesendet: Samstag, 8. Oktober 2011 17:27
>> An: [email protected]
>> Betreff: Re: st: ciplot (ssc) - change markersymbol
>>
>> This isn't anything to do with schemes, because, as you report, whatever your -scheme- choices, -ciplot- would override them.
>>
>> Welcome to the world of programming! That is, if you want -ciplot- to default to circles, you need to clone the program and set your own defaults. It's now your program, except in so far as it was mine. You should use a different name.
>>
>> Evidently, I preferred -dh- as default marker for myself, at least when -ciplot- was written.
>>
>> Nick
>>
>> On Sat, Oct 8, 2011 at 3:50 PM, Kaulisch, Marc <[email protected]> wrote:
>>
>>> I am really puzzled and cannot solve the problem myself. Drawing
>>> graph with ciplot (from ssc) I get a diamond as marker
>>> (independently of scheme used). As I do some graphs with the
>>> statsby-strategy, where I get a circle as marker, and some with
>>> ciplot, I would like to get a circle for both types of graphs.
>>>
>>> Where do I have to change the markersymbol in my scheme?
>>> I do not want to extend every -ciplot- command by msymbol(circle).
>>>
>>>
>>> Marc
>>>
>>> P.S.: Is there any good introduction into the customizing schemes?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/