Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to graph a normal distribution?
Post: How to graph a normal distribution?

Hello, if I have a problem in the following way: x: 20 mu: 17 sigma: 1.1 well before graphing you need to get the Z-score, so I apply the following: z = (x - mu)/sigmaNow I can just use z in a norma...
royer14 Data Science 0 1,968 Apr-22-2019, 09:16 PM
    Thread: how to reopen a closed tab of wx.aui.Notebook?
Post: RE: how to reopen a closed tab of wx.aui.Notebook?

(Feb-17-2019, 05:04 PM)Yoriz Wrote: When you close a tab it is destroyed, you cant re-open it, in the open_tab event, code will have to be added to create a new tab.But how could I do it?, since I o...
royer14 GUI 2 3,226 Feb-18-2019, 12:31 AM
    Thread: how to reopen a closed tab of wx.aui.Notebook?
Post: how to reopen a closed tab of wx.aui.Notebook?

Hello Group, I have a design that I had created in wxformbuilder but I have a difficulty when I close a tab and by a menubar return it open import wx import wx.xrc import wx.aui ####################...
royer14 GUI 2 3,226 Feb-17-2019, 06:22 AM
    Thread: how can I create a recursive graphic with matplotlib
Post: RE: how can I create a recursive graphic with matp...

(Nov-22-2018, 07:49 AM)Gribouillis Wrote: Can you explain the context? Are you trying to translate a matlab book into python? Is this homework?No,rather it is a challenge that I proposed, look at so...
royer14 Data Science 3 3,691 Nov-22-2018, 02:55 PM
    Thread: how can I create a recursive graphic with matplotlib
Post: how can I create a recursive graphic with matplotl...

hello to all, I am wanting to draw a graph similar to the one that will be shown in the image: [Image: http://www.mediafire.com/convkey/25b2/pn...efb67g.jpg] The question is: For the differential equ...
royer14 Data Science 3 3,691 Nov-22-2018, 12:44 AM
    Thread: how can I create graphics using matplotlib
Post: RE: how can I create graphics using matplotlib

but I want to know how you did the graph, see if I have the following, how would you do it?x[n] = n, 0 <= n <= 40
royer14 Data Science 8 4,144 Nov-21-2018, 01:21 AM
    Thread: how can I create graphics using matplotlib
Post: RE: how can I create graphics using matplotlib

(Nov-20-2018, 07:07 PM)Gribouillis Wrote: I could run your code in Scilab. Here is a first python equivalent import numpy as np from matplotlib import pyplot as plt N = 40 x = np.ones(N+1) b = 0.7 S...
royer14 Data Science 8 4,144 Nov-20-2018, 07:12 PM
    Thread: how can I create graphics using matplotlib
Post: RE: how can I create graphics using matplotlib

(Nov-20-2018, 05:16 PM)Gribouillis Wrote: It is still unclear, what are the possible values of n? When i varies from 0 to N-1, the index n-i decreases from n to n-N+1, which may be negative. Can you...
royer14 Data Science 8 4,144 Nov-20-2018, 06:13 PM
    Thread: how can I create graphics using matplotlib
Post: RE: how can I create graphics using matplotlib

(Nov-20-2018, 01:20 PM)Gribouillis Wrote: There seem to be many errors in this script, both python errors and mathematical errors. Can you describe the mathematical relation between x and y?ok,sorry...
royer14 Data Science 8 4,144 Nov-20-2018, 04:53 PM
    Thread: how can I create graphics using matplotlib
Post: how can I create graphics using matplotlib

hello, I'm trying to use the matplotlib library and since I'm new my code has been written wrong, can you tell me what I failed ?, more than anything I would like to be corrected x = np.arange(1,41) b...
royer14 Data Science 8 4,144 Nov-20-2018, 12:26 PM
    Thread: wx.StaticBitmap change image
Post: RE: wx.StaticBitmap change image

(Jul-02-2018, 05:49 AM)Barrowman Wrote: Okay. So as I am learning I need some explanations as to how this works. I could not see how to fit these into a working program. I still can't figure out how...
royer14 GUI 4 8,275 Jul-02-2018, 02:35 PM
    Thread: how to run the dialog from another py file
Post: how to run the dialog from another py file

this my code, how do you think I would? class MainFrame(wx.Frame): """""" #---------------------------------------------------------------------- def __init__(self): """Constructo...
royer14 GUI 0 2,676 Jul-02-2018, 05:33 AM
    Thread: wx.StaticBitmap change image
Post: RE: wx.StaticBitmap change image

Well, it is not a mistake that I gave, rather I have the solution. def option_combo(self, event): selection = self.comboBox_Dir.GetSelection() if selection == 0: self.m_bitmap1.SetBitma...
royer14 GUI 4 8,275 Jul-01-2018, 11:27 PM
    Thread: wx.StaticBitmap change image
Post: wx.StaticBitmap change image

Hi,when I created a StaticBitmap, and a combobox. I had the idea that, as I would to change the image in StaticBitmap, from another event. From combobox. my code of StaticBitmap self.m_bitmap1 = wx....
royer14 GUI 4 8,275 Jul-01-2018, 05:37 PM
    Thread: enter from py exported by pyqt5 designer to another py file
Post: enter from py exported by pyqt5 designer to anothe...

Hello, I have difficulty entering a py, which I had exported from pyqt5 designer with the name "program.py", using another py with name "programa.py". Look at the code, please. program.py Hide/Show # ...
royer14 GUI 0 2,198 Jun-29-2018, 01:45 AM
    Thread: make StaticText limit Number
Post: RE: make StaticText limit Number

(Nov-26-2017, 10:42 PM)Windspar Wrote: wxpython Numctrl fractionWidth tell how many decimal places you want exelent, thank you very much
royer14 GUI 4 4,127 Nov-27-2017, 02:44 PM
    Thread: make StaticText limit Number
Post: RE: make StaticText limit Number

(Nov-26-2017, 08:38 PM)Windspar Wrote: You can use NumCtrl from wx.lib.masked. example import wx from wx.lib.masked import NumCtrl class Form:     def __init__(self, *args, **kwargs):         self....
royer14 GUI 4 4,127 Nov-26-2017, 10:37 PM
    Thread: make StaticText limit Number
Post: make StaticText limit Number

I have an issue with StaticText, and I do not know how to make it accept only the following data = '0123456789.' . Of course, when you type any letter, the letter is automatically deleted. Can you hel...
royer14 GUI 4 4,127 Nov-26-2017, 06:15 PM
    Thread: How to make pyinstaller import the ttk theme?
Post: RE: How to make pyinstaller import the ttk theme?

(Nov-20-2017, 11:04 AM)buran Wrote: Cross-posted at SO https://stackoverflow.com/questions/4738...-ttk-themePlease I still don't have solution
royer14 GUI 6 11,165 Nov-20-2017, 05:55 PM
    Thread: Im embarresed to ask, but Im stuck
Post: RE: Im embarresed to ask, but Im stuck

hi, try with this little fix root= Tk() app1 = Application(parent=root) # parent to root app= Application(master=root) # edit it app.mainloop() root.destroy()
royer14 GUI 5 4,598 Nov-20-2017, 03:22 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020