Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have the following ListPlot:

ListPlot[{{1, 3}, {2, 4}, {3, .3}, {4, 6}}, Filling -> Axis, 
FillingStyle -> {Thickness[0.008], Black}, 
LabelStyle -> Directive[20], Frame -> True]

plot1

I have a problem with the lines below the points: They are too thin. How to change the Thickness propperly? FillingStyle -> {Thickness[0.008], Black}, seems not to be correct.

share|improve this question
3  
Perhaps try using FillingStyle -> Directive[Thickness[0.008], Black]? This will remove possible ambiguity. –  chuy Feb 19 '13 at 15:11
    
In your case, you do need to use Directive with FillingStyle, but you don't need it for LabelStyle; i.e., FillingStyle -> Directive[Thickness[0.008], Black], LabelStyle -> 30 will work. –  m_goldberg Feb 19 '13 at 16:21
add comment

1 Answer 1

up vote 3 down vote accepted

It is usually a good idea to group multiple "styling" options into a single Directive. This removes any possible ambiguities that can arise. When simply using a list

PlotStyle -> {d1, d2, d3,...} 

this specifies that successive directives di should be used cyclically for successive objects.

using Directive to specify a style

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.