# How to set a line color to orange, and specify line markers in Matplotlib?

To set a line color to orange, and specify line markers in matplotlib, we can take the following steps −

## Steps

• Set the figure size and adjust the padding between and around the subplots.

• Create x and y data points using numpy.

• Plot the x and y data points with the attributes color='orange' and marker='*'.

• To display the figure, use show() method.

## Example

import matplotlib.pyplot as plt
import numpy as np

# Set the figure size
plt.rcParams["figure.figsize"] = [7.50, 3.50]
plt.rcParams["figure.autolayout"] = True

# x and y data points
x = np.linspace(-5, 5, 100)
y = np.sin(x)

# Plot the data points with color and marker attributes
plt.plot(x, y, color='orange', marker="*")

# Display the plot
plt.show()

## Output

It will produce the following output −
{"ft_lang_label":"__label__en","ft_lang_prob":0.7199018,"math_prob":0.95037526,"size":2273,"snap":"2023-14-2023-23","text_gpt3_token_len":557,"char_repetition_ratio":0.18995152,"word_repetition_ratio":0.07317073,"special_character_ratio":0.24989001,"punctuation_ratio":0.097087376,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99840045,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-24T22:38:42Z\",\"WARC-Record-ID\":\"<urn:uuid:b2302ab2-91ac-4b27-8f05-6e6f63b4ee15>\",\"Content-Length\":\"39774\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:07e6f8a4-c666-43f5-9386-487a1113ef08>\",\"WARC-Concurrent-To\":\"<urn:uuid:489552b7-456a-4497-ba07-378f2e2d9b22>\",\"WARC-IP-Address\":\"192.229.210.176\",\"WARC-Target-URI\":\"https://www.tutorialspoint.com/how-to-set-a-line-color-to-orange-and-specify-line-markers-in-matplotlib\",\"WARC-Payload-Digest\":\"sha1:QZNHWWZIW7G3WKCKILAIR6VLIFKJAMA4\",\"WARC-Block-Digest\":\"sha1:4LR3U73BET2SOWMNF4ITQHAOJ3WOVR2C\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296945289.9_warc_CC-MAIN-20230324211121-20230325001121-00159.warc.gz\"}"}