Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
#######
#
# E-scripts on matplotlib and friends.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
# An introduction to eev can be found here:
#
#   (find-eev-quick-intro)
#   http://angg.twu.net/eev-intros/find-eev-quick-intro.html
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://angg.twu.net/e/matplotlib.e>
#           or at <http://angg.twu.net/e/matplotlib.e.html>.
#        See also <http://angg.twu.net/emacs.html>,
#                 <http://angg.twu.net/.emacs[.html]>,
#                 <http://angg.twu.net/.zshrc[.html]>,
#                 <http://angg.twu.net/escripts.html>,
#             and <http://angg.twu.net/>.
#
#######



# «.combined-plot»	(to "combined-plot")


# (find-es "python" "matplotlib")
# (find-es "python" "matplotlib-examples")
# (find-es "python" "matplotlib-rougier")
# https://news.ycombinator.com/item?id=32875983 What's New in Matplotlib 3.6.0 (matplotlib.org) ***
# https://pyx-project.org/examples/graphs/index.html
# https://sourceforge.net/p/pyx/gallery/index/
# https://seaborn.pydata.org/
# https://pyx-project.org/news.html



#####
#
# combined-plot
# 2024may25
#
#####

# «combined-plot»  (to ".combined-plot")

* (eepitch-python3)
* (eepitch-kill)
* (eepitch-python3)
data1 = [1, 3, 2, 5, 4]
data2 = [2, 4, 6, 8, 10]
(data1, data2)

import matplotlib.pyplot as plt

plt.plot(data1, label='Data 1', marker='o')
plt.plot(data2, label='Data 2', marker='s')
plt.xlabel('Index')
plt.ylabel('Value')
plt.title('Combined Plot')
plt.legend()
plt.savefig('combined_plot.png')
plt.show()

def normalize(data):
    total = sum(data)
    return [x / total for x in data]

print(normalize(data1))
normalize(data2)




#  Local Variables:
#  coding:               utf-8-unix
#  End: