Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.9K Views
|
4 Replies
|
5 Total Likes
View groups...
Share
Share this post:

Set thickness of lines in PlotStyle?

Hi,

How do I increase the thickness of blue lines in PlotStyle? I changed it to different values, but the thickness is the same in the plot. Thank for your help.

m = {-1.2852607307692288`, -18.58230396491227`, -17.442891739130424`, \
-51.07318624999999`, 25.11379064814815`, 12.245637428571419`, 
   3.0271611940298553`, -38.950592272727285`, -5.847918706896566`, \
-16.464527310344835`, -2.1082548863636403`, -9.570384181818174`, \
-3.0268428767123288`, -24.611555926829286`, -2.9406667682926946`, \
-2.0461193529411825`, -16.73539174418604`};

ListPlot[m, LabelStyle -> {14, GrayLevel[0], Bold}, 
 PlotStyle -> {Blue, Thickness[.3]}, ImageSize -> 500, 
 Filling -> Axis, PlotRange -> All]
POSTED BY: M.A. Ghorbani
4 Replies

One other thought, when you set the Styles, (PlotStyle, fillstyle, etc) if you give a list, each item of the list applies a separate curve. In your original post, you had PlotStyle->{A,B}. This means that A applies to the first curve (although you had only one) and B applies to the second and subsequent curves. Directive will group various styles and apply them to one curve.

Regards,

Neil

POSTED BY: Neil Singer

I found the solution.Thanks :)

POSTED BY: M.A. Ghorbani

Dear Neil,

Your help is always greatly appreciated.

Is possible to increase blue points size?

POSTED BY: M.A. Ghorbani

You need FillingStyle for the filling, not PlotStyle.

i.e.

ListPlot[m, LabelStyle -> {14, GrayLevel[0], Bold}, PlotStyle -> Blue,
  ImageSize -> 500, Filling -> Axis, 
 FillingStyle -> Directive[Red, Thickness[.01]], PlotRange -> All]

Regards,

Neil

POSTED BY: Neil Singer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard