Be the Python code that generates a bar chart:
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import matplotlib.dates as dates
from datetime import datetime, timedelta
x = []
y = []
with open("dados.csv") as f:
for l in f:...
Friends,
The following graphic was generated:
Thecodeusedwasasfollows:#-*-coding:utf-8-*-importmatplotlib.pyplotaspltimportmatplotlib.datesasdatesfromdatetimeimportdatetime,timedeltax=[]y=[]withopen("dataset_semAtaques__10Abril2017_1min.c...
I'm using the dataset:
https://www.unsw.adfa.edu.au/unsw-canberra-cyber/cybersecurity/ADFA-NB15-Datasets/
The purpose is to classify a sample as attack or non-attack. Is it a good idea to use logistic regression?
I made the code below to...
The figure is cutting the subtitles, how do I get it?
# Libraries
import matplotlib.pyplot as plt
# Make data
group_names=['0,89% - Tração Animal e Propulsão Humana',
'45,08% - Passageiro e Misto',...
I would like the graph to show only the values of the x, y coordinates corresponding to the points. But it's not like this:
Forexample:ThepointwhoseXcoordinateis04/10/201709:41:00doesnotdisplaythevalueofitsYcoordinate.Thenextdotdoesnotdispla...
Translation of question I asked no OS :
I have a scalar function that represents the electrical potential on a spherical surface. I want to plot, for a given radius, the surface and map its color points based on the potential function.
Ho...
I'm doing a program that reads a .txt file that updates itself in the execution of another program in fortran and creates a real-time animation of the temperature map of a board, however it is giving an error because the fortran is updating the...
I'm new to Python and I'm having a hard time with my algorithm. Its function is to check words in a set of files in PDF format and to analyze the recurrence of each word, generating with this information a graph of the law of zipf second most re...
Hello, I'm having some problems with the contour () function of pylab.
In the final image, the x and y axis values are ranging from 0 to 600, which was the amount of intervals in my arange (). However, I wanted the values of x and y (-3 to 3) to...
The outline of the graph appears, but empty, with no data.
import sqlite3
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
connection = sqlite3.connect('escola.db')
c = connection.cursor()
sql= "SELECT DATE_EXTRACTION, NOT...