You can specify the style
of the plotted line when calling df.plot
:
df.plot(x='col_name_1', y='col_name_2', style="o")
The style
argument can also be a dict
or list
, e.g.:
import numpy as np
import pandas as pd
d = {'one' : np.random.rand(10),
'two' : np.random.rand(10)}
df = pd.DataFrame(d)
df.plot(style=['o','rx'])
All the accepted style formats are listed in the documentation of matplotlib.pyplot.plot
.
Related Contents:
- Annotate bars with values on Pandas bar plots
- making matplotlib scatter plots from dataframes in Python’s pandas
- Add x and y labels to a pandas plot
- Add missing dates to pandas dataframe
- Format y axis as percent
- Modify the legend of pandas bar plot
- Bar-Plot with two bars and two y-axis
- making matplotlib graphs look like R by default?
- Plot multiple columns of pandas DataFrame using Seaborn
- Count number of elements in each column less than x
- How to get rid of grid lines when plotting with Seaborn + Pandas with secondary_y
- iPython/Jupyter Notebook and Pandas, how to plot multiple graphs in a for loop?
- How to plot one single data point?
- Making a chart bigger in size
- How to draw horizontal grid only (using pandas plot + pyplot)
- How to apply a function to two columns of Pandas dataframe
- UnicodeDecodeError when reading CSV file in Pandas with Python
- Pandas index column title or name
- Is there a way to detach matplotlib plots so that the computation can continue?
- Logical operators for Boolean indexing in Pandas
- How to set xlim and ylim for a subplot [duplicate]
- Pandas dataframe get first row of each group
- Pandas dataframe fillna() only some columns in place
- getting the index of a row in a pandas apply function
- Extract column value based on another column in Pandas
- Plotting time in Python with Matplotlib
- Get total of Pandas column
- append dictionary to data frame
- changing sort in value_counts
- Extract values in Pandas value_counts()
- How do I find the closest values in a Pandas series to an input number?
- How to slice a pandas DataFrame by position?
- How to get number of groups in a groupby object in pandas?
- python pandas extract year from datetime: df[‘year’] = df[‘date’].year is not working
- Check for duplicate values in Pandas dataframe column
- How can I rotate xticklabels in matplotlib so that the spacing between each xticklabel is equal? [duplicate]
- Pandas convert a column of list to dummies
- Set value on an entire column of a pandas dataframe
- How to create a scatter plot by category [duplicate]
- Python Pandas update a dataframe value from another dataframe
- Ranking order per group in Pandas
- Python pandas: how to remove nan and -inf values
- Convert Pandas Series to DateTime in a DataFrame
- Is it possible to have multiple PyPlot windows? Or am I limited to subplots?
- how to reset index pandas dataframe after dropna() pandas dataframe
- pandas combine two columns with null values
- Convert Pandas Dataframe to nested JSON
- Convert Pandas dataframe to Dask dataframe
- Python pandas, Plotting options for multiple lines
- Cyclic colormap without visual distortions for use in phase angle plots?