[pyqtgraph] Re: Problems exporting graphs from GUI

2018-04-16 Thread adityahahoo
Hi Alejandro!

In my opinion, since you have found how to solve the issue, you can 
initiate the change to PyQtGraph's Github code repository by creating a 
pull request here:
https://github.com/pyqtgraph/pyqtgraph/pulls 

There are links on the page which help contributors posting a pull request 
for the first time. 
Aditya


On Sunday, October 22, 2017 at 10:42:24 PM UTC+3, Alejandro Condori wrote:
>
> Hi, i was trying to export a graph from a QGraphicsView (promoted to 
> PlotWidget with pyqtgraph as header file) but I had some troubles doing 
> that. Spyder returns this error:
>  
> TypeError: 'float' object cannot be interpreted as an integer
>
> So, I found the file where the problem was and made a change in line 70 of 
> the file "ImageExporte.py" located in this 
> directory: C:\ProgramData\Anaconda3\Lib\site-packages\pyqtgraph\exporters :
>
> line 70 before:  bg = np.empty((self.params['width'], 
> self.params['height'], 4), dtype=np.ubyte)
>
> line 70 after: bg = np.empty((int(self.params['width']), 
> int(self.params['height']), 4), dtype=np.ubyte)
>
> And the problem was solved, I didn't know where do I have to report this, 
> so i posted this here 
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyqtgraph+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/72602473-31bf-4ba0-b129-7015a80602e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[pyqtgraph] Re: Problems exporting graphs from GUI

2018-04-15 Thread 陳冠任
yeah, it's work great.

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyqtgraph+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/05b6283a-c7ab-4bd3-aadd-e6d43a04f582%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[pyqtgraph] Re: Problems exporting graphs from GUI

2018-04-15 Thread Alejandro Condori
Did it work? 

El jueves, 5 de abril de 2018, 0:06:41 (UTC-5), 陳冠任 escribió:
>
> Thanks bro, I encounter same problem!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyqtgraph+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/b93f2ea6-d43b-4ffb-8821-8e087a1df8c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[pyqtgraph] Re: Problems exporting graphs from GUI

2018-04-04 Thread 陳冠任
Thanks bro, I encounter same problem!

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyqtgraph+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/0977f2f3-78cd-44d2-8a17-dbec9374822c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.