Hello…
I had tried many times to visualize the Bezier Triangular Patch in the topic as I mentioned above and unfortunately I always failed. Many thanks for someone who can give me the solution to solve my problem.
Below, I posting the code and error displayed…
Code (as showed in the website):
fig=plot_Surface(n, b, m, ‘Bezier triangular patch of degree 4’)
py.iplot(fig, filename=‘Bezier-triangular-patch’)
Error:
ProxyError Traceback (most recent call last)
in ()
1 fig=plot_Surface(n, b, m, ‘Bezier triangular patch of degree 4’)
----> 2 py.iplot(fig, filename=‘Bezier-triangular-patch’)
/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in iplot(figure_or_data, **plot_options)
149 if ‘auto_open’ not in plot_options:
150 plot_options[‘auto_open’] = False
–> 151 url = plot(figure_or_data, **plot_options)
152
153 if isinstance(figure_or_data, dict):
/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in plot(figure_or_data, validate, **plot_options)
239
240 plot_options = _plot_option_logic(plot_options)
–> 241 res = _send_to_plotly(figure, **plot_options)
242 if res[‘error’] == ‘’:
243 if plot_options[‘auto_open’]:
/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in _send_to_plotly(figure, **plot_options)
1424
1425 r = requests.post(url, data=payload,
-> 1426 verify=get_config()[‘plotly_ssl_verification’])
1427 r.raise_for_status()
1428 r = json.loads(r.text)
/usr/lib/python2.7/dist-packages/requests/api.pyc in post(url, data, **kwargs)
86 “”"
87
—> 88 return request(‘post’, url, data=data, **kwargs)
89
90
/usr/lib/python2.7/dist-packages/requests/api.pyc in request(method, url, **kwargs)
42
43 session = sessions.Session()
—> 44 return session.request(method=method, url=url, **kwargs)
45
46
/usr/lib/python2.7/dist-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert)
453 ‘allow_redirects’: allow_redirects,
454 }
–> 455 resp = self.send(prep, **send_kwargs)
456
457 return resp
/usr/lib/python2.7/dist-packages/requests/sessions.pyc in send(self, request, **kwargs)
556 start = datetime.utcnow()
557 # Send the request
–> 558 r = adapter.send(request, **kwargs)
559 # Total elapsed time of the request (approximately)
560 r.elapsed = datetime.utcnow() - start
/usr/lib/python2.7/dist-packages/requests/adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)
379
380 except _ProxyError as e:
–> 381 raise ProxyError(e)
382
383 except (_SSLError, _HTTPError) as e:
ProxyError: Cannot connect to proxy. Socket error: [Errno 111] Connection refused.