Questions tagged [linestyle]
Use for questions regarding the styling of lines (color, width, markers etc.) in plots. Commonly appearing in the context of MATLAB/Octave, gnuplot, matplotlib.
80
questions
-1
votes
2
answers
45
views
Specify the linetype for one line in a multiline plot
I'd like to plot a dataframe using standard linestyles and colors for all columns except 1. I would always like my column labeled 'Target' to have linestyle='-.' and be black. I can do this in the ...
2
votes
1
answer
23
views
python histogram line styles
I'm plotting a histogram for class and while I have all of the important things figured out, I can't seem to replicate this line style of a solid line with the points showing up on the line. It's ...
1
vote
1
answer
27
views
How to make a barplot not based of labels?
I don't have a dummy code so I will try to explain it as good as I can. If no success I will try to think of a code to make it more clear.
My question is regarding making a barplot. I'd like to make a ...
0
votes
1
answer
77
views
Python plot dataframe with multiple lines and two different styles
Assume you have the dataframe df which should be plotted but with two different line styles. Each line with "X_Y" == "Y" should be dashed.
I'm wondering if there is a faster and ...
1
vote
1
answer
107
views
can I make a custom linestyle in matplotlib for plot made up of multiple parallel lines
I am making a plot where I want to delineate two geological sections. To delineate I want to use three parallel dashed lines. I do not know how to make a multiline line in matplotlib. I made three ...
1
vote
1
answer
177
views
VBA Conditional Formatting of specific Borders
Hej,
So I am trying to use VBA to add conditonal formatting to compensate for some other coding, which changes the ranges from time to time. My problem is, that I only the conditional formatting to ...
0
votes
1
answer
545
views
More line styles in Matlab - without markers?
Is there some way to plot more than 4 line styles in Matlab (as it is stated here https://www.mathworks.com/help/matlab/creating_plots/specify-line-and-marker-appearance-in-plots.html), I mean line ...
0
votes
1
answer
2k
views
Not able to change linestyle in Seaborn plot
I have a dataframe modified from iris dataset where there is 1 numeric and 2 categorical columns:
PL Species group
4.400 versicolor A
1.600 setosa B
5.600 virginica ...
0
votes
1
answer
203
views
Remove part of the border of a table excel VBA
There is a set of forms that we sometimes have to fill out at work, and I'm trying to automate the task by having excel VBA recreate the form as a word document and populate with the appropriate data ...
0
votes
1
answer
543
views
How to plotting line graph with different linestyle using matplotlib [duplicate]
I have data of minimum ping time in normal condition and in DOS simulation so the data will be different. I still newbie as data scientist and only can make visualization from the data like this.
The ...
1
vote
0
answers
141
views
Different linestyle in same label matplotlib
I am generating following figure with matplotlib.
As you can see its two way graph, from 0 to some value for 1 side, and also same for the other side.
And since both ways have the same labels, with ...
1
vote
2
answers
997
views
Obtain lists of plot marker and line styles in Octave
Is there a way to programmatically obtain the list of marker and line styles available for plotting in Octave?
Ideally, I would do something like
mslist = whatever_function_for_marker_styles;
lslist = ...
0
votes
0
answers
235
views
Matplotlib: contour plot line style with markers
Is there a way to make a contour plot ax.contour line style not a simply dot-dashed but with some hollow markers, like this:
In documentation I see only linestyles parameter with limited set of ...
7
votes
1
answer
18k
views
Plotly: How to change line style using px.line?
I have dataframe tha tlooks similar to this:
>>>Hour Level value
0 7 H 1.435
1 7 M 3.124
2 7 L 5.578
3 8 H 0.435
4 8 M ...
1
vote
1
answer
59
views
How to generate several legends for single plot matplotlib
I was making a plot of f(x,y,z) and wanted this to be displayed in a 2D-plane. To avoid cluttering my legend i decided to have different linestyles for y, different colors for z and place the two in ...
2
votes
2
answers
1k
views
Matplotlib/pyplot: easy way for conditional formatting of linestyle?
Let's say I want to plot two solid lines that cross each other and I want to plot line2 dashed only if it is above line 1. The lines are on the same x-grid. What is the best/simplest way to achieve ...
0
votes
1
answer
505
views
After changing linestyle in revit api cant find new linestyle in object styles
I am creating a category in a Revit family that is a linestyle and after i set it, it exists but i just cant find it in the family and yet i f try to recreate it revit creates an error that it already ...
3
votes
2
answers
874
views
gnuplot : setting line style in a for loop
I have to plot several curve on a same graph. I necessarly need to use a for loop to do this. I would like to plot the 2 first curves with lines and the others with points. I am able to plot all the ...
0
votes
1
answer
270
views
How to specify a dotted line in plot3?
I am trying to generate a random rotation matrix R and apply it to a vector. At the end, I have to plot both the original vector and the vector after rotation. The original vector has to be plotted ...
0
votes
1
answer
25
views
python define style/vairable for line (but not for figure)
I very often plot two types of results - e.g. prediction vs measurement - into a figure for a document, where the look of the corresponding lines/scatters should be match each other in different plots,...
0
votes
1
answer
38
views
Connecting points in a plot if their distance on one axis is below a certain threshold
I would like to create a plot where connecting lines are only drawn between points that are closer on one axis than a certain treshold.
Is this possible in MATLAB? And if so, how?
2
votes
0
answers
48
views
MATLAB: cycle through lines before colors when plotting [duplicate]
When you set DefaultAxesColorOrder and DefaultAxesLineStyleOrder, MATLAB will first cycle through all colors with the first style, then again through all colors with the second style and so on.
What ...
5
votes
1
answer
256
views
Conflict between 'ShowText' and 'LineStyle' in the contourf function in MATLAB R2019a?
I'm using the code as follows. But the figures are different when I run my code in MATLAB R2014a and R2019a (in the same computer, Win7 64bit). It seems there is a conflict between 'ShowText' and '...
3
votes
3
answers
3k
views
Plotting missing values in ggplot2 with a separate line type
I am creating a line plot using ggplot2, but I have missing data that is denoted by NaN. My line plot is currently not adding any line between the missing values. However, I want to connect the ...
2
votes
1
answer
149
views
Define custom linestyles in Octave for use on multiple figures
I'd like to define line styles in Octave (like in gnuplot) for further usage:
I was thinking about something like that:
styles = {['color',[.5 .2 .8],'--', 'linewidth', 1.25], ['or', markersize, 4], ...
3
votes
1
answer
3k
views
Cannot set spine line style with matplotlib
I try to set the line style of matplotlib plot spines, but for some reason, it does not work. I can set them invisible or make them thinner, but I cannot change the line style.
My aim is to present ...
0
votes
1
answer
102
views
Setting plot linestyles afterwards
I am plotting graphs in a loop:
cities = grouped_price.index.levels[0] # list of cities
dates = grouped_price.index.levels[1] # list of dates, which
# are ...
2
votes
0
answers
571
views
Matplotlib cycle through linestyles and custom dashes
I am setting up a plot for multiple lines using a for loop. However, I would like to use more than the four standard linestyles (e.g ':', '--' etc). From here I understand I can create custom ...
0
votes
1
answer
305
views
Chevron linestyle in matplotlib
Is it possible to make a dashed linestyle using more complicated shapes in matplotlib (or any other python plotting library)? It's easy to make a linestyle with different spacings and combinations of ...
0
votes
1
answer
2k
views
EXCEL: Round Dot LineStyle for Cell Border
Using VBA in excel for a Cell Border (not a chart):
Cannot set the Borders.Linestyle property to have the round dot linestyle (see attached photo). Using .Linestyle = xlDot results in the larger, ...
0
votes
1
answer
162
views
Coreplot - changing data line color (during the middle of a dynamic-plot situation)
I am dynamically plotting on my iPhone from values received from a BLE module using CorePlot. I found the initializer for the CPTLineStyle class and changed the lineColor property from black to green....
0
votes
1
answer
169
views
Octave, barplot, linestyle none
The following code:
data = rand(4, 5);
figure
h4 = bar(data, "stacked", "linestyle", "none");
l4 = legend("Col1", "Col2", "Col3", "Col4", "Col5");
legend(l4, "location", "northeastoutside");
...
1
vote
1
answer
1k
views
coloring multiple lines in gnuplot
I am trying to set line colors in gnuplot. I have a file with several datablocks in the usual format, separated by two empty lines. Is there a way I can set the color of each line in the plot to ...
0
votes
2
answers
7k
views
How to plot dark green graph with RGB indication
I want to plot a dark green and a dark green dashed graph, but unfortunately MatLab complains that the vector does not have the same length
Error using plot
Vectors must be the same length.
Error in ...
2
votes
1
answer
1k
views
How to plot dotted lines from a shapefile in python?
I am not sure on how to plot a dotted line from a shapefile in Python. It appears that readshapefile() does not have any linestyle for me to set. Below I have a working code where I take a shapefile ...
9
votes
3
answers
15k
views
How to change the linestyle of whiskers in pandas boxplots?
Is there a way to change the linestyle of the whiskers in pandas boxplots to '-'? Default seems to be '--'.
I have tried:
color = dict(boxes='black', whiskers='black', medians='red', caps='black')
...
1
vote
1
answer
622
views
Waterfall or Ribbon plot of stacked data (XRD) with color constant lines and spacing determined by another variable
I'm struggling to make a plot that I find useful with my current set of X-ray diffraction data. I have multiple x-ray scans that I'd like to place in a 3d arrangement according to a third variable. [...
1
vote
1
answer
1k
views
MatPlotLib Python - RGB values from color sensor used to change color of line point
So I'm working with a TCS3200 color sensor and Arduino Mega 2560 to generate specific RGB values. Then, through the serial cable, I'm sending data to VIDLE for Python, splitting the 3 data points, ...
1
vote
2
answers
631
views
Plot lines that end with a square bracket
My goal: plot a horizontal line with a square bracket (---]) end to it.
I usually plot horizontal lines with
line([0,1],[2,2],'linestyle',':')
I can add usual markers at the end by
plot([0,1],[2,...
0
votes
1
answer
68
views
Rendering DashStyle.Dot Line using Graphics.PageScale as 0.50
In Windows form, I am trying to render the Line by setting style as DashStyle.Dot by using Graphics and Graphics page scale as 0.50. But the line does not rendered in form. Please anyone suggest me on ...
0
votes
1
answer
368
views
Errorbar line missing in Matlab
The following code produces the image shown:
probabilities = datasetlist(1,:);
avgscores = datasetlist(2,:);
x = probabilities;
y = probabilities;
err = avgscores;
hold on
...
0
votes
1
answer
739
views
How to cycle through line styles in Octave while keeping same color?
My goal is to plot 2 different main functions on the same figure, but also be able to plot on top of those similar functions that relate to how those original 2 functions evolve. For example, the 1st ...
0
votes
1
answer
864
views
How do I pass an array of line specifications or styles to plot?
I want to plot multiple lines with one call to plot(), with different line styles for each line. Here's an example:
Both
plot([1,2,3]', [4,5;6,7;8,9], {'-o', '-x'})
and
hs = plot([1,2,3]', [4,5;6,...
0
votes
0
answers
118
views
Matrix Semilogx linestyle and linewidth change
I need some help making some changes in the way my plot is plotted with this code.
First of all, I need dark colours. I want my the lines to start from black and slowly go to dark red/purple. Scaling ...
2
votes
1
answer
2k
views
Gnuplot: line not recognised
I am trying to change the line style of my gnuplot graph (there is only one line, I have only a simple plot of y versus x)
However, when I type:
set style line 1 linecolor rgb '#0060ad' ... (or ...
0
votes
2
answers
728
views
dot dashed line touch yaxis min and max in matplotlib
Is there a way to get a vertical dot-dashed line in matplotlib to always touch the top and bottom of the yaxis? I am drawing two vertical lines, with space between them, and I want them to touch the ...
0
votes
2
answers
1k
views
Matplotlib: getting fine solid line in addition to specified line style
I am trying to create a line figure with four different line styles. I have mean values for y axis and error for each y value. Because I want it to be all same color (black), I want to differentiate ...
1
vote
1
answer
57
views
Plotting matrices and defining a LineStyle for i.e. every 3rd line
In my Code I use plot(x,y) where x and y are 16x12 matrices. Now I want to define style rules like for example 'the first two lines should be red, then two lines blue' or 'every 3rd line should be ...
1
vote
2
answers
2k
views
Set the space size of matplotlibs linestyle "dashed"
Is there any way to set the space size/thickness between consecutive dashes when plotting using the linestyle "dashed"?
What I am looking for is to have the freedom to plot using the following ...
1
vote
1
answer
607
views
maple: How to show two lines on each other in a plot?
I am plotting two functions, which have very little difference from each other.
When plotting with maple, considering my precision (12 digits), the plot shows one line. I know this is normal, but I ...